INTEGER expressions return integers (whole
numbers).
INTEGER expressions can be used to combine expressions, do
arithmetic, and test conditions for conditional evaluation. The
INTEGER CONST expression returns the same integer
constant, specified in the
VALUE attribute of an
EXPRNODE element.
For example, using an
INTEGER CONST expression within a
VOID CREATE expression adds a new property, whose
value is the specified constant to each record processed.
See the
EXPRESSION element for DTD and attribute information.
As part of an
INTEGER AND expression, this example uses an
INTEGER CONST sub-expression to test whether the
PROP_NAME value equals the constant value.
<EXPRESSION TYPE="VOID" NAME="IF">
<EXPRESSION TYPE="INTEGER" NAME="AND">
<EXPRESSION TYPE="INTEGER" NAME="MATH">
<EXPRNODE NAME="TYPE" VALUE="INTEGER"/>
<EXPRNODE NAME="OPERATOR" VALUE="EQUAL"/>
<EXPRESSION TYPE="INTEGER" NAME="PROP_EXISTS">
<EXPRNODE NAME="PROP_NAME" VALUE="CATEGORY_ID"/>
</EXPRESSION>
<EXPRESSION TYPE="INTEGER" NAME="CONST">
<EXPRNODE NAME="VALUE" VALUE="0"/>
</EXPRESSION>
</EXPRESSION>
<EXPRESSION TYPE="INTEGER" NAME="MATH">
<EXPRNODE NAME="TYPE" VALUE="INTEGER"/>
<EXPRNODE NAME="OPERATOR" VALUE="EQUAL"/>
<EXPRESSION TYPE="INTEGER" NAME="PROP_EXISTS">
<EXPRNODE NAME="PROP_NAME" VALUE="SALESRANK"/>
</EXPRESSION>
<EXPRESSION TYPE="INTEGER" NAME="CONST">
<EXPRNODE NAME="VALUE" VALUE="0"/>
</EXPRESSION>
</EXPRESSION>
</EXPRESSION>
<EXPRESSION TYPE="VOID" NAME="REMOVE_RECORD"/>
</EXPRESSION>
