boolean
This function converts the input to a boolean. A number is true only if it is neither positive or negative zero or NaN. A node-set is true only if it is nonempty. A string is true only if its length is nonzero.
Signature:
boolean(input as any)
Arguments
-
input as any: Any value.
For example:
boolean('false') returns true.
Property IDs:
-
namespace-uri: