OpenWGA 7.10 - WebTML reference
WebTML tags<tml:case>
Description :
A simple condition tag which evaluates its body when the condition is 'true'. In combination with <tml:select> multi level conditions can be constructed.
Derived from:
Attributes:
show inherited attributes ... | |||
Name | Value(s) | Purpose | |
value | number | string |
Defines the value to compare to the 'switch' value of the surrounding <tml:select>. |
Details:
If the contents of the <tml:c<case> tag is not rendered because its condition is false or an earlier <tml:case> inside a <tml:select> was true then it will also not write WebTML variables that may have been specified by any variable-writing attributes on it like var, pvar, sessionvar etc.
Examples:
Usage in combination with <tml:select>:
Usage standalone:
<tml:select>
<tml:case isempty="headline">
No headline defined
</tml:case>
<tml:caseelse>
Headline: <tml:item name="headline"/>
</tml:caseelse>
</tml:select>
Usage standalone:
<tml:case isselected="true">
<tml:include ref="subnavigation"/>
</tml:case>