Condition UI directives
From GECK
These directives are a series of traits that performs condition operations on an element in a user interface XML block. These are typically used after all the needed mathematical operations (Mathematical UI directives) in a block to set a condition on when are these operations run.
- Eq - performs an operation when its value is equal to the value of the variable.
- Neq - performs an operation when its value is not equal to the value of the variable.
- Gt - performs an operation when its value is greater than the value of the variable.
- Gte - performs an operation when its value is greater than or equal to the value of the variable.
- Lt - performs an operation when its value is lower than the value of the variable.
- Lte - performs an operation when its value is lower than or equal to the value of the variable.
- Onlyif - performs an operation when its value is true.
- Onlyifnot - performs an operation when its value is false.
Example
<onlyif> <copy src="me()" trait="mouseover"/> <eq> 3 </eq></onlyif>