boolean

The boolean function evaluates an expression and returns true or false.

Syntax

js
boolean( expression )

Parameters

expression

The expression to be evaluated. The expression can refer to numbers and node-sets as well as booleans.

Return value

Boolean true or false after evaluating expression.

Description

Specifications

XPath 1.0 4.3

Gecko support

Supported.