Using the <if> Tag to Test for a Condition

The <t:if> tag performs the basic test for a condition:

<t:if test="condition">
Condition is true - display something
</t:if>

If you want to define alternate behavior, you can add the <t:else> tag:

<t:if test="condition">
Condition is true - display something
</t:if>
<t:else>

Condition is false - display something else

</t:else>

The contents of these tags will appear in the output HTML and can include <t:value> tags, HTML or CSS styling.

Note: You can nest a <t:if> tag inside another <t:if> tag.