2.2.3.2.11 CONDITION When Used Under the ONACTION, ONSELECT, and ONSTORE Elements
The <CONDITION> element is used under the <ONACTION>, <ONSELECT>, and <ONSTORE> elements. The <CONDITION> element is an expression that is evaluated to determine if an event is allowed. This evaluation is done before the event is performed.
A condition is an expression. The return value of the expression must be an integer (LONG).
A condition that evaluates to 0 is FALSE; one that evaluates to nonzero is TRUE. If the condition is TRUE, the event is allowed; otherwise, it is not.
The condition is contained in a CDATA block, as in the following example:
-
<CONDITION> <![CDATA[ secstate.playcount > 0 ]]> </CONDITION>