v0.0.4b

Logical Operators

Jan 1, 2026

Operators

Used in GroupExpression to combine multiple expressions with boolean logic.

Operators

Operator

Name

Description

Required Expressions

AND

And

Returns true if all expressions evaluate to true

2 or more

OR

Or

Returns true if at least one expression evaluates to true

2 or more

NOT

Not

Inverts the boolean result of the expression

Exactly 1

Behavior

AND Operator

  • Requires all expressions in the group to be true

  • Short-circuits on first false result (optimization)

  • Use for conditions where multiple criteria must be met

OR Operator

  • Requires at least one expression in the group to be true

  • Short-circuits on first true result (optimization)

  • Use for conditions where any of several criteria can be met

NOT Operator

  • Inverts the boolean result

  • Must have exactly 1 expression

  • Use to negate conditions

Expression Types

Logical operators can combine any expression types:

  • ConstExpression - Static boolean values

  • PredicateExpression - Field emptiness checks

  • ComparisonExpression - Value comparisons

  • GroupExpression - Nested logical operations (for complex logic)

Usage

Used in conditional logic for:

  • Complex workflow routing

  • Multi-criteria validation

  • Conditional field requirements

  • Advanced process state transitions

  • Nested conditional logic

Examples

AND Logic: All conditions must be true

AND [condition1, condition2, condition3]

OR Logic: Any condition can be true

OR [condition1, condition2, condition3]

NOT Logic: Invert a condition

NOT [condition1]

Nested Logic: Combine operators

AND [
  condition1,
  OR [condition2, condition3],
  NOT [condition4]
]