3.8. OPT attributes
3.8.6. opt:if
3.8.5. opt:dynamic
« Previous
3.8.7. opt:on
Next »

3.8.6. opt:if

This attribute allows to display the tag conditionally:

<p opt:if="$showParagraph == true">This paragraph is displayed only if the condition is true.</p>

The code above is equivalent of:

<opt:if test="$showParagraph == true">
<p>This paragraph is displayed only if the condition is true.</p>
</opt:if>

Within opt:if attribute the opt:elseif and opt:else tags do not work.

See also:

3.8.6. opt:if
3.8. OPT attributes
« Previous
3.8.5. opt:dynamic
Next »
3.8.7. opt:on