@XOR

The XOR function provides the exclusive or logic and can take one or more parameters, each of which is evaluated as a Boolean, and returning true when one and only one of its parameters is true. If all of the parameters evaluate to false, or if two or more parameters evaluate to true, this function will return false. This function will end evaluation of all parameters and return false when the second true value is found.

Parameters

@XOR (Expression 1 [, ..., Expression N])
Expression 1
Required Boolean parameter; evaluated by the function in relation to all other parameters looking for an exclusive true value among the parameter list.
Expression N
Optional Boolean parameter(s); evaluated by the function in relation to all other parameters looking for an exclusive true value among the parameter list. If both this and any preceding parameter are true, the function will end evaluation and return false. No additional parameters will be evaluated.

Supported Return Types

Boolean