Inline rule for parsing [[#if value | then | else]].
Performs a simple truthy/falsy check on a string value. The value
is treated as false when it matches "false", "null", "",
or "0" (case-insensitive); all other values are truthy.
The then branch is required (separated from the condition by |).
The else branch is optional (separated from the then branch by
another |).
Produces an "if" AST element with condition, then, and
else fields.
Inline rule for parsing
[[#if value | then | else]].Performs a simple truthy/falsy check on a string value. The value is treated as false when it matches
"false","null","", or"0"(case-insensitive); all other values are truthy.The then branch is required (separated from the condition by
|). The else branch is optional (separated from the then branch by another|).Produces an
"if"AST element withcondition,then, andelsefields.