<if> element
The <if> element contains a conditional expression and a sequence
of macro actions. The macro runtime evaluates the conditional expression
in the <if> element. Then:
- If the conditional expression is true:
- The macro runtime performs the sequence of macro actions in the <if> element; and
- The macro runtime skips the following <else> element if there is one.
- If the conditional expression is false:
- The macro runtime skips the sequence of macro actions in the <if> element; and
- The macro runtime performs the macro actions in the following <else> element if there is one.
The Macro object uses the <if> element, and if necessary the <else> element, to store a Conditional action (see Conditional action (<if> element and <else> element)).