OpenWGA 7.11 - WebTML reference

WebTML tags » [All tags]

<tml:[All tags] unless ="itemexpression">

Purpose:

If the (any) condition in the unless expression is true the tag is not rendered.

Description:

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.

Value(s):

Item expression

Examples:

<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).