Docs GODI Archive
Projects Blog Knowledge

Look up function:

(e.g. "List.find" or "keysym")
More options

The UI language
 ui:alist-value and ui:alist-item
 ui:dyn-enum-value and ui:dyn-enum-item
 ui:enum-value and ui:enum-item
 ui:enumeration and ui:enum
 ui:text and ui:password
 t:*, q:*, and p:*
 Dot notation (v1.v2)
The element ui:ifexpr

The element expects in the expr attribute a number which is interpreted as boolean value. If the number is non-zero, the inner nodes of the element are expanded and the condition code is set to true; otherwise the inner nodes are ignored, and the conditon code is set to false.


Level: Control structure

<!ELEMENT ui:ifexpr ANY>

<!ATTLIST ui:ifexpr
          expr CDATA #REQUIRED

  • expr: An integer number. A non-zero value as considered as true boolean value, and the number zero is considered as false boolean value. The number is usually the result of the evaluation of a bracket expression.

Sub elements

All page body elements may occur as sub elements.


Note that template parameters and bracket expressions within ui:if are unconditionally evaluated. See ui:cond for a discussion of the consequences of this fact.


<ui:ifexpr expr="$[int-gt(n,1)]">
  The result has more than one solution: ...
This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml