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
|
It returns false if both inputs are true or both are false.
Input | Output |
---|---|
{"a":true,"b":true}
|
false
|
{"a":false,"b":false}
|
false
|