Xor | XOR

Syntax

XOR( [input], [other] )

Parameters

input
Any data may be used as the input.

other
Any data may be used as the other.

Return Value

TRUE or FALSE

Description

Determine if exactly one of two values is truthy. Determination of truthiness is determined by the BOOLEAN operation.

Examples

XOR(false, false) # returns FALSE
XOR(false, true) # returns TRUE
XOR(true, false) # returns TRUE
XOR(true, true) # returns FALSE
XOR(0, 1) # returns TRUE
XOR(0, 0) # returns FALSE