Compartir a través de


boolean Function

A version of this page is also available for

Windows Embedded CE 6.0 R3

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 XPath is converted to a Boolean in a way that is dependent on that type.

See Also

Reference

XPath Boolean Functions