Bool Operation¶
Performs basic boolean logic on two boolean inputs. Supports AND, OR, XOR between a and b, and a unary NOT operation on a. Returns a single boolean result.

Usage¶
Use this node to combine or invert boolean signals in a logic flow. It is typically placed after nodes that output BOOLEAN values (e.g., comparisons or condition checks) to build compound conditions or toggle states.
Inputs¶
| Field | Required | Type | Description | Example | 
|---|---|---|---|---|
| a | True | BOOLEAN | First boolean operand. Used in all operations and the only operand for NOT. | True | 
| b | True | BOOLEAN | Second boolean operand. Used for AND, OR, XOR. Ignored when operation is NOT a. | False | 
| op | True | ['a AND b', 'a OR b', 'a XOR b', 'NOT a'] | Selects the boolean operation to apply. For NOT a, only input a is considered. | a AND b | 
Outputs¶
| Field | Type | Description | Example | 
|---|---|---|---|
| result | BOOLEAN | The result of the selected boolean operation. | False | 
Important Notes¶
- Operation scope: 'NOT a' ignores input b entirely.
- Type expectation: Inputs must be BOOLEAN; invalid states or errors fall back to a result of False.
- XOR behavior: 'a XOR b' is true only when exactly one of a or b is true.
Troubleshooting¶
- Unexpected False result: Ensure both inputs are valid booleans and the correct operation is selected. Errors or unknown operations default to False.
- Result not changing with b: If the operation is 'NOT a', input b is intentionally ignored.
- Logic seems inverted: Double-check whether OR/AND/XOR was selected correctly, and remember XOR differs from OR when both inputs are true.