Node referenceLogic
XOR
XOR node.
What it does
XOR node.
Inputs & outputs
| Input handle |
|---|
| None |
| Output handle |
|---|
| None |
Configuration
No configuration.
Example
How it works
XOR (exclusive OR) takes two boolean inputs (left and right) and emits {"result": true} only when exactly one of them is truthy — not both, not neither. Missing inputs default to false. Use it to detect mutually exclusive states.
Example
Scenario: A Workflow needs to flag customers who have an active trial or an active paid plan, but not both (which would indicate a data inconsistency).
Wire the hasTrial flag into left and the hasPaidPlan flag into right. If result is true, one status is active and the flow continues normally; if false, both are the same state and a SCRIPT node logs a data-quality warning.