Skip to content

xor

xor(a, b) → boolean · Type

Logical XOR (exclusive OR) — returns true when exactly one operand is true.

  • a (required): first boolean

  • b (required): second boolean

utlx
xor(true, false)                         // true
xor(true, true)                          // false
xor(false, false)                        // false

Released under AGPL-3.0.