company logo

ELSE expression in document template

The ELSE expression in a template introduces the alternative text to be written, when the preceding if condition is wrong.

$if sex == 'female'$\

She\

$else$\

He\

$end$

Notes:

An ELSE statement not preceded by an IF statement will cause an error.

Definition: 

else_expr := _dollar _else _dollar