Important: |
---|
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist. |
A version of this page is also available for
4/8/2010
Converts the argument to a Boolean.
Syntax
boolean boolean( object) |
Parameters
- object
-
Object to be converted to a Boolean.
Return Value
Converts its argument to a Boolean as shown in the following list:
- A number is True if and only if it is neither a positive or
negative zero, nor
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 described
in
XPathis
converted to a Boolean in a way that is dependent on that type.