IF expression in document template
IF expressions in document templates are used for conditional text output. Instead of writing a computation expression, IF expressions might be more comfortable. An IF expression might be followed by an ELSE expression. It must be terminated by an END expression in any case.
$if sex == 'female'$\
She\
$else$\
He\
$end$
Notes:
Spaces and new lines left for better readability must be escaped, when not being to be written to the output text.
Definition:
if_expr := _dollar _if operand _dollar