BOOL¶
This generator expression belongs to the Conditional Expressions family. See that section for related generator expressions.
Syntax¶
$<BOOL:string>
Converts string to 0 or 1. Evaluates to 0 if any of the
following is true:
stringis empty,stringis a case-insensitive equal of0,FALSE,OFF,N,NO,IGNORE, orNOTFOUND, orstringends in the suffix-NOTFOUND(case-sensitive).
Otherwise evaluates to 1.