6.0

Table Of Contents
165
XOr (Boolean operator function)
Returns true if only one of two specified expressions is true, false otherwise.
Syntax
xor( expression1, expression2 ) ' boolean value
expression1 xor expression2 boolean value
Arguments
expression1, expression2 — Boolean values.
Code Sample Examples
These examples illustrate the possible values for XOR.
Example 1
xor(true, false) %Returns true
Example 2
xor(false, true) %Returns true
Example 3
xor(false, false) %Returns false
Example 4
xor(true, true) %Returns true
xmlCount()
Counts the number of children for a specific element, according to standard XPath syntax. The return value
is an integer and always returns 0 if the specified XPath is invalid or if no value is found. The XPath is always
relative to the XML root path.
Syntax
xmlcount('/agency/crew/salary')
Code Sample Example
The following example illustrates xmlcount().