Xor
True if exactly one of two values is true.
Node id logic/xor
The Xor node (exclusive or) outputs true if one of a and b is true and
the other false, and false if both are true or both are false.
Inputs
| Name | Type | Default | Notes |
|---|---|---|---|
| a | boolean | false | |
| b | boolean | false |
Outputs
| Name | Type | Notes |
|---|---|---|
| result | boolean |
Behaviour
- Defaults. Both inputs default to false.
- Two inputs only. Unlike And and Or, Xor has exactly two inputs, and evaluates both.
- Toggling. Xor with
btrue invertsa, withbfalse keeps it.
Related nodes
- Or: also true when both values are true.
- Not Equals Boolean: the same test.