n8n If nodeConfigure If in n8n.
The n8n If node sends each item down one of two branches, true or false. Every item that arrives is tested against the conditions you set, then leaves through the matching output. Two parameters cover the whole node: Conditions and Options. Useful the moment a workflow stops being a straight line.
Verified Trustpilot reviews · AI, automation & growth agency
What does the n8n If node do in a workflow?
The n8n If node applies binary conditional logic: it reads each incoming item, evaluates one or more comparisons against it, and routes that item to the true output or the false output. It handles four condition types, Bool, String, Number, and Date & Time, so a text match, a numeric threshold and a date cutoff all live in the same node. Nothing is filtered away: both branches stay available, and you decide what runs on each side.
Think of it as the fork in the road. A run pulls rows from Google Sheets, and only the rows with an amount above a threshold should go to the billing branch. One condition on the amount field, and the rest of the workflow splits cleanly instead of guarding every later node.
A second pattern: an inbox watcher reads messages, and the If node checks the sender or the subject before anything noisy happens. Matching messages continue to a Slack alert, the others leave through the false output and go to a quiet log. Same idea when a Gmail step should only fire for a subset of items.
Third, it acts as a guard in front of an expensive call. Before hitting an API with HTTP Request, test that the identifier you need is actually present in the item, with an expression such as {{ $json.customerId }}. A required field that arrives empty stops the node, so checking first keeps the run readable.
When do you reach for something else? If you need more than two conditional outputs, the Switch node is the right tool: the If node only ever exposes true and false. And the node does not start anything on its own. A trigger comes first, a Schedule Trigger, a Webhook, or the trigger of the tool you are working with. The If node then runs on each item that reaches it.
One more thing worth knowing before you build: conditions are evaluated per item, so a batch of twenty rows produces twenty independent decisions rather than a single verdict on the batch. If the two branches need to come back together later, the Merge node exists for exactly that. Teams that want the whole routing pattern walked through live can look at the n8n training, and the n8n review covers how the platform compares elsewhere.
Which parameters does the If node expose?
The If node has 2 parameters. For each one: the node as you configure it in n8n, what the parameter changes, and our field notes.
Parameters index
Conditions
conditionsWhat you see in n8n
Notes & use cases
This is where the routing decision lives. Each condition picks a data type and a comparison from the dropdown, and the fields to fill change to match.
Key parameters
- Conditions: the filter itself, built one line at a time from the
Add Conditionplaceholder. The left side usually comes from the item, as an expression like{{ $json.status }}, a small formula n8n resolves at run time. With two or more lines, the dropdown between them selects AND, where every condition must hold, or OR, where one match is enough.
Options
optionsWhat you see in n8n
Notes & use cases
Two switches sit behind Add option, and neither appears in the panel until you add it. Both change how a comparison is judged rather than what is compared.
Key parameters
- Ignore Case: tells the node to ignore letter case while evaluating conditions, so a value stored in capitals still matches a lowercase comparison.
- Convert types where required: when the type of an expression does not match the type of the comparison, n8n casts it to the required type. For booleans,
"false"or0becomefalse.
Need help automating If with n8n?
A person reads every message.
Common questions about the If node
01Is the If node included with n8n?
02What do you need to set up before using the n8n If node?
03What are the limits of the If node?
04If node or Switch node?
05n8n or Make for conditional routing?
Get our weekly integration tips.
No spam. Unsubscribe anytime.


