The boolean
function evaluates an expression and returns true or false.
The boolean
function evaluates an expression and returns true or false.
expression
The expression to be evaluated. The expression can refer to numbers and node-sets as well as booleans.
Boolean true
or false
after evaluating expression
.
NaN
. Otherwise, it evaluates true.Supported.
© 2005–2022 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/XPath/Functions/boolean