Bool Operation¶
Performs basic boolean logic operations on two boolean inputs. Supports AND, OR, XOR, and a unary NOT on the first input. Returns a single boolean result.

Usage¶
Use this node to combine or invert boolean conditions within a logic flow. Typical usage includes gating branches, combining multiple comparisons, or toggling behavior based on multiple flags. Note that when selecting NOT a, the second input b is ignored.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| a | True | BOOLEAN | First boolean operand. Used for all operations and as the target for NOT. | True |
| b | True | BOOLEAN | Second boolean operand. Ignored when the operation is NOT a. | False |
| op | True | CHOICE | Boolean operation to apply. Choices: a AND b, a OR b, a XOR b, NOT a. | a XOR b |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| result | BOOLEAN | The outcome of the selected boolean operation. | True |
Important Notes¶
- Operation scope: For NOT a, input b is ignored.
- XOR behavior: a XOR b returns true only when exactly one of a or b is true.
- Invalid operation handling: If an unknown operation is provided, the node returns false.
- Error handling: On internal errors, the node returns false.
Troubleshooting¶
- Unexpected false result: Verify the selected op value matches one of the allowed choices exactly (a AND b, a OR b, a XOR b, NOT a).
- Result not changing when using NOT: Remember that NOT a ignores b; ensure you intended to invert a and not b.
- Type errors: Ensure both a and b are valid booleans (true/false). Non-boolean inputs will lead to a false result.
- Confusion with XOR: If you expect true when both inputs are true, use a AND b instead of a XOR b.