CONTENT_IF, CONTENT_UNLESS, CONTENT_ELSE — Displays enclosed section if content sets value to true/false.
<CONTENT_IF NAME="foo"> Text to be included if foo is included in Content and is true <CONTENT_ELSE> Text to be included if foo not inclued in Content or is false </CONTENT_IF> <CONTENT_UNLESS NAME="bar"> Text to be included if bar is included in Content and is true </CONTENT_UNLESS>
If the XPath query in the name attribute returns a true value, then the text enclosed by the CONTENT_IF tag will be included in the template.
Please note: if you ask for loop_context_vars like (__first__, __odd__, __inner__ or __last__) that they must be written in lowercase!.