@designliquido/xpath
    Preparing search index...

    Function toBoolean1_0

    • Converts a value to a boolean using XPath 1.0 rules (Appendix I.2).

      XPath 1.0 boolean conversion rules:

      • Number: false if 0 or NaN, true otherwise
      • String: false if empty, true otherwise
      • Node-set: false if empty, true otherwise
      • Other types: apply fn:boolean() rules

      Parameters

      • value: any

        The value to convert

      Returns boolean

      Boolean result