Causes the actions specified by the first <arg-actions> to be performed if the conditions specified by <arg-conditions> evaluate to true or the actions specified by the second <arg-actions> (if it exists) to be performed if the conditions specified by <arg-conditions> evaluate to false.
<do-if> <arg-conditions> <and> <if-op-attr name="Given Name" op="equal" mode="nocase">fred</if-op-attr> </and> </arg-conditions> <arg-actions> <do-set-dest-attr-value name="Surname"> <arg-value type="string"> <token-text>Flintstone</token-text> </arg-value> </do-add-dest-attr-value> </arg-actions> <arg-actions> <do-set-dest-attr-value name="Surname"> <arg-value type="string"> <token-text>Rubble</token-text> </arg-value> </do-add-dest-attr-value> </arg-actions></do-if>
( arg-conditions , arg-actions , arg-actions ? )
Element |
Description |
---|---|
Actions that are performed by a <rule>. |
|
Actions argument. |