Condition Node
The Condition Node allows you to control whether a workflow continues execution based on a condition written as a JavaScript expression. It enables branching logic similar toif statements in traditional programming.
What the Condition Node Does
The Condition Node is responsible for:- Evaluating a JavaScript expression
- Deciding whether the workflow should continue
- Enabling conditional execution paths
If it evaluates to false, the workflow stops or follows an alternate path (if configured).

Configuration
Condition
The Condition field accepts a JavaScript expression that must evaluate to eithertrue or false.
You can reference data from previous nodes using dynamic values.
Tip: Type {{ to insert values from earlier nodes.
Writing Conditions
Conditions are written as pure JavaScript expressions.Examples
Check a boolean value
Check if a value exists
Compare numbers
String comparison
Using Dynamic Values
Dynamic values come from:- Request Parameters Node
- Logic Node
- Database Node
- JWT Node
{{ }} syntax.
Example:
Execution Behavior
- Condition is evaluated at runtime
- Expression must return
trueorfalse - If
true→ workflow continues - If
false→ workflow stops or exits the current branch
Common Use Cases
- Input validation
- Role-based access control
- Conditional database writes
- Feature flags
- Guard clauses (fail fast)
Example: Validate Required Input
Error Handling
If the condition:- Throws an error
- Returns a non-boolean value