Skip to main content
Logic

Condition

logic_condition

Branch on a boolean expression — if / else.

Inputs1
Outputs2
Settings3
Field AccessJMESPath
Examples2

About this Node

Evaluates a JMESPath expression against the node's scoped workflow state, compares the result against a threshold or literal value using a comparison operator (`<`, `<=`, `>`, `>=`, `==`, `!=`), and routes execution down either the `true` (port 1) or `false` (port 2) branch while automatically bypassing the unchosen path.

Ports & Branches

Inputs (1)
inPort 0Inbound execution flow
Outputs (2)
truePort 1Branch taken when the comparison evaluates to true
falsePort 2Branch taken when the comparison evaluates to false

How this Node Reads Data

Input Access Field Example Description
Evaluation Path JMESPath path classification.confidence JMESPath query evaluated against the node's incoming state (supports nested objects, array indexing, and JMESPath functions).

State Keys Written (Outputs)

Key Pattern Type Role Description
<scoped state passthrough> object Primary Does not overwrite state keys; routes execution exclusively to either the `true` or `false` branch and forwards scoped state downstream.

Tips & Best Practices

  • Unchosen branches undergo dead-path elimination: downstream nodes reachable only from the inactive branch are automatically marked bypassed.
  • For 3 or more discrete string branches, use the Router (`logic_switch`) node instead of chaining Conditions.

Commonly Paired With