Skip to content

EvaluateBoolean

Returns boolean value of the current node.

1
myXml.EvaluateBoolean():boolean

Returns the boolean value of the node selected by the specified XPath expression.

1
myXml.EvaluateBoolean(xpath: string):boolean

Parameters

string xpath
    The XPath expression to evaluate. If not specified, the current node is used.

Returns

The boolean value of the current node. The boolean value of the selected node.

Remarks

This method checks if the evaluated value is (case-insensitive) equal to "false" or "0" or empty value. All other values are evaluated as true value.
This method checks if the evaluated value is (case-insensitive) equal to "false" or "0" or empty value. All other values are evaluated as true value.

Evaluate with a xpath

1
var isDisabled = $Xml.EvaluateBoolean('//Customer/IsDisabled');

See Also