Skip to content

EvaluateBoolean

Returns boolean value of the current node.

1
myXml.EvaluateBoolean():boolean

Returns boolean value of the specified xpath.

1
myXml.EvaluateBoolean(xpath: string):boolean

Parameters

string xpath
    XPath to evaluate. If not specified current node is used.

Remarks

This method checks the evaluated value is (non-case sensitive) equal to "false" or "0" or empty value. All other values are evaluated as true value.
This method checks the evaluated value is (non-case sensitive) 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