condition¶
This generator expression belongs to the Conditional Expressions family. See that section for related generator expressions.
Syntax¶
$<condition:true_string>
Evaluates to true_string if condition is 1, or an empty string if
condition evaluates to 0. Any other value for condition results in
an error.