Node: If (Condition)
How to configure the If node to split a workflow into two branches based on a simple condition.
The If node evaluates a simple condition and splits the workflow into two paths: True and False. If you need more than two possible outcomes, use the Switch node instead.
When to use it
- For a binary decision inside the flow: does the message contain a word? Is the amount over a threshold? Is a field empty?
- As a filter before a costly action (e.g. only send an email if the customer opted into communications).
Configuration
- Field: the variable to evaluate, e.g.
$trigger.tagor$deal.amount. - Operator:
equals,not_equals,contains,not_contains,starts_with,ends_with,greater_than,less_than,is_empty,is_not_empty. - Value: the comparison value (supports variables). Not required when the operator is
is_emptyoris_not_empty.
Example
If node with field $trigger.tag, operator contains, value vip → True branch: "Assign AI Agent" (VIP Sales); False branch: continues the standard flow.
Tips
greater_than/less_thanonly work when both sides are numeric; if the field holds text, the condition evaluates to false.- You can compare against another variable instead of a fixed value, e.g. value =
{{$deal.previous_amount}}.
Troubleshooting
- The condition always evaluates false: open the Variables panel and confirm the field actually exists in context at that point of the workflow.
- You need 3+ possible outcomes: replace the If node with a Switch node.
Related articles
-
Build your first workflow
Omnifox workflows automate your operation: a trigger starts the automation and action nodes do the work. Build a welcome message in minutes.
-
Workflow triggers catalog
Learn which events can start a workflow automatically in Omnifox.
-
Action nodes available in workflows
Discover the actions a workflow can run automatically.
-
Conditions and branching (if/then) in a workflow
Make your flows take decisions and follow different paths based on each contact data.
-
Ready-to-use workflow templates
Start your automations in minutes from prebuilt flows you can customize.