OpenWGA 7.10 - WebTML referenceWebTML tags » [All tags]
<tml:[All tags] unless ="itemexpression">
If the (any) condition in the unless expression is true the tag is not rendered.
Attribute "unless" receives a "boolean item expression" which tests WebTML items and calculates a boolean result. When its expression returns true the tag is cancelled. For more information about "boolean item expression"s read the description in attribute if.
The "unless" expression has priority over an "if" expression. When both are present and evaluate true then the tag is cancelled.
<tml:input name="product" unless="products_not_available"/>
The <tml:input> is rendered as long as products are available (the item value "products_not_available" calculates to boolean false).