Reads a selected value as a boolean.
Accepts only the true and false forms produced by XPath itself, so that computed booleans are read back unchanged and any other text is rejected rather than guessed at.
true
false
The Target to read, either a selected node or a computed value
true if the text of node is true; false if it is false
node
TypeError If the text of node is neither true nor false
Reads a selected value as a boolean.
Accepts only the
trueandfalseforms produced by XPath itself, so that computed booleans are read back unchanged and any other text is rejected rather than guessed at.