The
Value parameters list has the same syntax as the parameters list for the
Value tag: see
The {{Value}} Tag. However, note that the parameters list must result in a
TRUE/FALSE result, and must therefore contain a
MATCH operation.
The definition of content includes both HTML/XML and replacement tags.
Any HTML/XML code in a skipped section is ignored and is not transmitted to the user agent. Server response file tags in a
skipped section are ignored and are not evaluated.
No special flow layout is implied by this tag: the
If,
Else, and
EndIf tags can be on one line, or can span multiple lines.
Blocks may be nested but must be completely nested. It is not permissible to place a
While tag in an
If block and have the
EndWhile tag in a different block.
To render on an inverted condition, just omit the if-content:
{{ if tag }}{{ else }}
content {{ endif }}.
If the
If /
Else /
EndIf tag is the last tag on a line, a newline will be added. If this tag is the only tag on the line, a blank line will be output.
To avoid this, place a comment tag at the end of the line. For example, {{ EndIf }}{{//}}.