XOR
Returns TRUE
is only one of the two received values is true. This is known as “Exclusive OR”.
If both values are true, this returns FALSE
.
Note that those values can be variables or the result of functions and operators.
Usage
XOR(value1, value2...)
Parameters
value1 |
(Required) The first |
value2 |
The second |
... |
You can give as many values as you want |
Examples
More information
The function can receive more than 2 values. The result will be TRUE
if the
number of TRUE
in the values is odd, and FALSE
otherwise.
This is a rare need, so it’s likely you will never need this. But if you do, it’s nice to have it.