Conditional Exit
Conditional Exit is a gate: it evaluates a boolean condition, and when the condition is true the run stops here, cleanly and successfully. When the condition is false the flow continues past the gate. Use it to stop early when there is nothing to do: “stop if the record already exists”, “stop if the response is empty”, “stop if the feature flag is off”. You find it on the node picker’s Control flow shelf.


| Field | Type | Default | Description |
|---|---|---|---|
Condition (condition) | boolean ✦ (required) | — | The condition to evaluate — when it resolves to true, the flow exits at this node. |
Message (message) | string ✦ (optional) | ConditionalExit triggered the exit from the flow |
The message recorded when the condition is true and the flow exits here. |
Fields marked ✦ accept expressions.
The condition is a bare boolean expression, written without {{ }} echo
tags. Standard truthiness applies: false, null, 0, "", and empty
arrays are falsy, everything else is truthy. Because truthy stops the run,
phrase the condition as the reason to stop. See
How-to: Use expressions for the full syntax.
Output
Section titled “Output”The node records a small envelope as its output: the evaluated condition,
the message (only when the run exits here, so its presence marks this gate
as the reason the run ended), and the upstream data under output.


The gate is transparent to the data flowing past it: when the run continues,
$prev on the next node reads through the gate to the upstream node’s
output, not the envelope. To ask a gate for its verdict from further
downstream, read the envelope explicitly:
$workflow->node('The gate')->conditionWritten bare like that it stays a boolean, which is what another boolean field
needs. Wrap it in {{ }} only where the surrounding field is text.
Example
Section titled “Example”The ConditionalExit template in the gallery (Automation → Templates) gates on an order amount:
$prev->amount < 10Orders under the threshold stop at the gate with the configured message;
larger orders flow through to the downstream nodes with $prev intact.
The ConditionalExit — $kv gate template shows the kill-switch pattern, stopping every run until a key-value entry is set:
$kv->smoke_gating !== "1"A descriptive message earns its keep in the run report. It is
expression-capable, so record the values that decided the exit:
Account {{ $start->accountId }} has status {{ $prev->status }}, so nothing to do.Exiting is success
Section titled “Exiting is success”A run that stops at a Conditional Exit completes normally. In the run report the gate’s entry reads Stopped by a condition, and a gate that let the run through reads Done. Nothing is flagged and nobody is alerted, which is the right outcome for “there was nothing to do”. When the condition detects something wrong and someone should hear about it, use Fail the run instead.
Limitations
Section titled “Limitations”- The gate ends the branch it sits on. Inside a Parallel split or a pager’s child flow, a truthy condition ends that child rather than the whole run, and the remaining children carry on.
- Echo tags are rejected on the condition. An echo tag always produces a
string, so the editor refuses to save
{{ ... }}on a boolean field and tells you to write the expression bare.
Related
Section titled “Related”- Switch routes between branches instead of stopping.
- Fail the run stops the run as failed.
- How-to: Conditional logic covers guard and branch patterns.