Skip to content

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.
Preview

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

FieldRequiredTypeDescriptionExample
aTrueBOOLEANFirst boolean operand. Used in all operations and the only operand for NOT.True
bTrueBOOLEANSecond boolean operand. Used for AND, OR, XOR. Ignored when operation is NOT a.False
opTrue['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

FieldTypeDescriptionExample
resultBOOLEANThe 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.