Skip to content

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

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

FieldRequiredTypeDescriptionExample
aTrueBOOLEANFirst boolean operand. Used for all operations and as the target for NOT.True
bTrueBOOLEANSecond boolean operand. Ignored when the operation is NOT a.False
opTrueCHOICEBoolean operation to apply. Choices: a AND b, a OR b, a XOR b, NOT a.a XOR b

Outputs

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