boolean Function
Converts the argument to a Boolean.
boolean boolean(object)
Remarks
Converts its argument to a Boolean as follows:
- A number is True if and only if it is neither positive or negative zero or NaN.
- A node-set is True if and only if it is non-empty.
- A string is True if and only if its length is non-zero.
- An object of a type other than the four basic types is converted to a Boolean in a way that is dependent on that type.
See Also
XML Data Types Reference