Xor

library operator
ID: e31477ef-0513-40fd-82b6-803605503054
Emits true only if the given boolean values A and B are not equal.
Takes two boolean values and emits false in case both values are true or both are false, and true otherwise.

Behavior

Test data showing the behavior of Xor

True

It returns true if exactly one input is true and one is false.

Input Output
{"a":true,"b":false} true
{"a":false,"b":true} true
True

It returns false if both inputs are true or both are false.

Input Output
{"a":true,"b":true} false
{"a":false,"b":false} false

Implementation

The implementation of Xor makes use of the following 2 operators.

1
Evaluates an expression.
1
Emits the inverse of a given boolean.