@designliquido/xpath
    Preparing search index...

    Function compare1_0

    • Compares two values using XPath 1.0 comparison rules.

      In XPath 1.0, comparisons follow type conversion rules:

      • If operand is a node-set, convert to string
      • If operand is a number, convert to number
      • If operand is a boolean, convert to boolean
      • Then compare using appropriate comparison

      Parameters

      • left: any

        The left operand

      • right: any

        The right operand

      • operator: string

        The comparison operator ('==', '<', etc.)

      Returns boolean

      Boolean result of comparison