Chalkboard - v3.0.1
    Preparing search index...

    Function XOR

    • Calculates the logical XOR (exclusive OR) operation on two or more values.

      Parameters

      • ...vals: (boolean | 0 | 1)[]

        Two or more values

      Returns boolean | 0 | 1

      const x = Chalkboard.bool.XOR(true, false, false); // Returns true
      const y = Chalkboard.bool.XOR(true, true, false); // Returns false