control.if, Branch execution based on a condition expression
Use control.if when the workflow should choose one branch based on a value
already produced by earlier steps: route high-value invoices for approval, skip
optional enrichment, or use a different extraction path for a document class.
The condition is a LiquidJS expression and should evaluate to a boolean. Keep
branching conditions simple; move multi-line calculations into
transform.script and branch on that result.
Configuration
Configuration fields sit at the step level (not insidewith:).
string
required
LiquidJS expression that evaluates to boolean
Output
Evaluated condition result
Which branch was executed
Output from executed branch