RecipeAgents / n8n nodes / If
Node reference · data pulled Oct 26, 2026n8n If node: what the data shows
Sends each item down a true or a false branch, based on conditions you set.
What it does
You build one or more conditions, each typed (string, number, date, boolean, array, object), and join them with AND or OR. Items that pass leave by the true output, the rest by the false output. For more than two routes, Switch is the tidier choice.
Half of public templates contain at least one If node, so it sits next to almost everything at an average rate. Template authors often drop a No Operation node on the branch that should do nothing, so the canvas shows the dead end on purpose; we leave No Operation out of partner counts because it does no work.
How often public templates use it
6,849 of the 13,574 public templates on n8n.io (50.5%) contain this node, in the snapshot we took on 2026-10-20. The table splits that by the year each template was published. 2026 runs to October 20.
| Year published | Templates with the node | Share of that year |
|---|---|---|
| 2024 | 184 of 462 | 39.8% |
| 2025 | 2,763 of 6,564 | 42.1% |
| 2026 | 3,735 of 5,845 | 63.9% |
The median template using this node has 131 views on n8n.io, against 284 for all templates. Template counts show what people publish, not what runs in production.
What it is used with
The most frequent partners are the nodes that appear most often in the same templates. "Lift" compares that with the whole library: 2× means the partner turns up twice as often next to this node as in an average template.
| Most frequent partner | Share of its templates | Lift |
|---|---|---|
| Code | 70.5% | 1.19× |
| Edit Fields (Set) | 63.3% | 1.14× |
| HTTP Request | 57.3% | 1.11× |
| Google Sheets | 41.8% | 1.17× |
| Schedule Trigger | 37.0% | 1.16× |
| AI Agent | 28.7% | 0.92× |
No partner clears our strong-pairing bar (in at least 5% of its templates and 1.5× the library rate). That is typical of nodes used almost everywhere: they sit next to everything about as often as average.
Most viewed public templates that use it: Automate multi platform social media content creation with ai (442,651 views); Angie personal ai assistant with telegram voice and text (429,283 views); Fully automated ai video generation and multi platform publishing (402,403 views).
Versions and changes
Node versions from the npm packages n8n-nodes-base and @n8n/n8n-nodes-langchain, version 2.44.4. New workflows get the default version; workflows built earlier keep the version they were built with until you replace the node.
| Node | Versions | Default | Credential types | Scope |
|---|---|---|---|---|
| If | 1, 2, 2.1, 2.2, 2.3, 2.4 | 2.4 | none needed | – |
Source on GitHub: packages/nodes-base/nodes/If: 59 commits since the repository was reorganised on 2021-11-17, last on 2026-10-13.
Recent fixes and features
- 2026-04-08: fix(If Node): Patches IF node when fields are missing (PR #28014)
- 2022-11-21: fix(IF Node): Fix "Is Empty" and "Is Not Empty" operation fails for date objects (PR #4670)
Merged dates from GitHub. A fix only helps once your n8n instance runs a release that includes it, so check your version.
Known problems
- Both branches run after a Merge. In workflows using the legacy (v0) execution order, a Merge node after If can make both branches execute. n8n 1.0 removed this; check the workflow's execution order setting on old workflows. Source: n8n docs
- Missing fields. A 2026 patch changed how the node handles fields that don't exist on an item; conditions on absent fields may evaluate differently across versions. Source: n8n PR #28014
- Type mismatch. Conditions are typed. Comparing a number stored as text with a number condition fails unless you convert it or loosen type validation. Source: n8n docs
Forum trouble signal: not measured. The n8n community forum's terms forbid automated access, so we don't count forum threads.
Our recipes that use it
1 of our 25 importable workflows uses this node:
Official docs and sources
Usage, pairings, AI share and views: our count of 13,574 public n8n.io templates (snapshot 2026-10-20). Versions: npm packages, version 2.44.4. Changes: n8n's GitHub repository. Docs read and data pulled Oct 26, 2026. We describe each node in our own words; the docs are the authority on settings.
Related nodes
- Switch2,069 templates · score 59.3
- Merge2,616 templates · score 55.1
- Loop Over Items2,319 templates · score 54.0
- Wait2,398 templates · score 51.2
- All 22 nodesSortable table with the scoring method
Questions
- How many n8n templates use the If node?
- 6,849 of the 13,574 public templates on n8n.io (50.5%), in our snapshot of 2026-10-20.
- What is the If node most often used with?
- Code, which appears in 70.5% of its templates.
- If or Switch?
- If for a yes/no split; Switch when items can go to three or more places.
- Why does my false branch run even though nothing matched?
- Usually the legacy execution order with a Merge node downstream; switch the workflow to the v1 order.