if (html)
An HTML content command that makes its host element conditional.
If this command's primary attribute resolves into a Boolean value of true
, the element will remain in the document. Otherwise the element and its contents are removed.
This command has a priority of 1000.
Examples
Basically any element can be made conditional with this content command. Here is a basic example of a conditional paragraph:
CODE
<p dyn-if="displayText"><span>Conditional text</span></p>