Skip to content

Bool Operation

Performs basic boolean logic between two boolean inputs. Supports AND, OR, XOR between a and b, and a unary NOT that inverts a. Returns a single boolean result.
Preview

Usage

Use this node when you need to combine or invert boolean flags in a workflow, such as gating execution, selecting branches, or building compound conditions. Choose the desired operation via the op selector; for NOT, only the first input (a) is used.

Inputs

FieldRequiredTypeDescriptionExample
aTrueBOOLEANFirst boolean operand. Used by all operations and the sole input for NOT.True
bTrueBOOLEANSecond boolean operand. Ignored when op is NOT a.False
opTrueenumThe boolean operation to apply. Options: a AND b, a OR b, a XOR b, NOT a.a AND b

Outputs

FieldTypeDescriptionExample
resultBOOLEANThe boolean outcome of the selected operation.False

Important Notes

  • For NOT a, the b input is ignored.
  • XOR returns true only when exactly one of a or b is true.
  • If an unknown operation is provided or an error occurs, the node returns false.
  • Inputs must be boolean values; passing non-boolean types may lead to unintended results.

Troubleshooting

  • Result is always false: Verify the op value matches one of the allowed options and that both inputs are valid booleans.
  • Unexpected use of b with NOT: Ensure you understand that NOT a ignores b.
  • XOR behaving like OR: Remember XOR is exclusive; it returns true only when a and b differ.
  • Type errors or coercion issues: Make sure upstream nodes output BOOLEAN, not strings like "true" or "false".