# \#if

**URL:** https://community.n8n.io/tag/if/71.md

[Latest](https://community.n8n.io/latest.md) · [Categories](https://community.n8n.io/categories.md) · [Tags](https://community.n8n.io/tags.md)

---

## [Document Classification in n8n – classify PDFs with a confidence score and route the shaky ones to Slack \[Workflow Included\]](https://community.n8n.io/t/document-classification-in-n8n-classify-pdfs-with-a-confidence-score-and-route-the-shaky-ones-to-slack-workflow-included/309446)

<div class="topic-metadata">

**Author:** [@easybits](https://community.n8n.io/u/easybits)\
**Replies:** 0\
**Last updated:** [August 25, 2026, 8:49am UTC](https://community.n8n.io/t/document-classification-in-n8n-classify-pdfs-with-a-confidence-score-and-route-the-shaky-ones-to-slack-workflow-included/309446 "2026-08-25T08:49:11Z")

</div>

:waving\_hand: Hey n8n Community, As you might already know, my friend Mike runs a small business and has one folder where everything lands: invoices, receipts, the odd contract, a scanned delivery note someone photog…

---

## [📊 Daily · Weekly · Monthly Business Report Automation](https://community.n8n.io/t/daily-weekly-monthly-business-report-automation/285499)

<div class="topic-metadata">

**Author:** [@siratal](https://community.n8n.io/u/siratal)\
**Replies:** 1\
**Last updated:** [June 30, 2026, 11:17pm UTC](https://community.n8n.io/t/daily-weekly-monthly-business-report-automation/285499 "2026-06-30T23:17:36Z")

</div>

Stop chasing shop managers for sales updates. This workflow turns messy spreadsheets into a clean executive summary delivered to your pocket every night. :bullseye: Project Overview This n8n workflow automates busines…

---

## [\[Workflow Included\] Get an email alert when any of your AI subscriptions silently raises its price – runs on Gmail + Google Sheets, free tier friendly](https://community.n8n.io/t/workflow-included-get-an-email-alert-when-any-of-your-ai-subscriptions-silently-raises-its-price-runs-on-gmail-google-sheets-free-tier-friendly/298243)

<div class="topic-metadata">

**Author:** [@easybits](https://community.n8n.io/u/easybits)\
**Replies:** 0\
**Last updated:** [June 4, 2026, 2:39pm UTC](https://community.n8n.io/t/workflow-included-get-an-email-alert-when-any-of-your-ai-subscriptions-silently-raises-its-price-runs-on-gmail-google-sheets-free-tier-friendly/298243 "2026-06-04T14:39:34Z")

</div>

:waving\_hand: Hey n8n Community, A while back I built a workflow for my friend Mike so he’d never pay the same invoice twice. After that one made the rounds, a colleague of mine, let’s call him Tom, reached out. He s…

---

## [If then merge the two brances of the if statement](https://community.n8n.io/t/if-then-merge-the-two-brances-of-the-if-statement/264811)

<div class="topic-metadata">

**Author:** [@Unfounded8673](https://community.n8n.io/u/Unfounded8673)\
**Replies:** 3\
**Last updated:** [February 13, 2026, 9:23pm UTC](https://community.n8n.io/t/if-then-merge-the-two-brances-of-the-if-statement/264811 "2026-02-13T21:23:05Z")

</div>

Describe the problem/error/question For some reason, I am having issues with an if-merge workflow. My workflow executes perfectly and then just stops after the merge. No data is actually passed. What is the error mes…

---

## [🐞 Possible bug in IF node: expression evaluates correctly but routing goes to True branch](https://community.n8n.io/t/possible-bug-in-if-node-expression-evaluates-correctly-but-routing-goes-to-true-branch/249209)

<div class="topic-metadata">

**Author:** [@Franciszek\_Kolpanow1](https://community.n8n.io/u/Franciszek_Kolpanow1)\
**Replies:** 1\
**Last updated:** [January 13, 2026, 10:45am UTC](https://community.n8n.io/t/possible-bug-in-if-node-expression-evaluates-correctly-but-routing-goes-to-true-branch/249209 "2026-01-13T10:45:31Z")

</div>

Hi, I believe I’ve run into a bug (or at least very unintuitive behavior) in the IF node when using expressions, and I’d like to check whether this is expected or not. Context / goal I’m using Split in Batches and want…

---

## [Paired item data for item from node](https://community.n8n.io/t/paired-item-data-for-item-from-node/245326)

<div class="topic-metadata">

**Author:** [@seddinnnss](https://community.n8n.io/u/seddinnnss)\
**Replies:** 4\
**Last updated:** [January 5, 2026, 1:26pm UTC](https://community.n8n.io/t/paired-item-data-for-item-from-node/245326 "2026-01-05T13:26:23Z")

</div>

Paired item data for item from node ‘Code in JavaScript12’ is unavailable. Ensure ‘Code in JavaScript12’ is providing the required output. An expression here won’t work because it uses .item and …

---

## [Compare Datasets does not return an empty item with “Always Output Data” enabled](https://community.n8n.io/t/compare-datasets-does-not-return-an-empty-item-with-always-output-data-enabled/237839)

<div class="topic-metadata">

**Author:** [@sfinarel9](https://community.n8n.io/u/sfinarel9)\
**Replies:** 1\
**Last updated:** [December 18, 2025, 8:26pm UTC](https://community.n8n.io/t/compare-datasets-does-not-return-an-empty-item-with-always-output-data-enabled/237839 "2025-12-18T20:26:55Z")

</div>

I’m having trouble counting the “Different” elements produced by the Compare Datasets node. What I’m trying to do: My project fetches an online XML file and compares it with the previously fetched version. Depending on …

---

## [IF nodes not working properly](https://community.n8n.io/t/if-nodes-not-working-properly/233499)

<div class="topic-metadata">

**Author:** [@Ronald](https://community.n8n.io/u/Ronald)\
**Replies:** 0\
**Last updated:** [December 9, 2025, 12:37pm UTC](https://community.n8n.io/t/if-nodes-not-working-properly/233499 "2025-12-09T12:37:37Z")

</div>

im new in n8n workflow, i tried to use its built in AI to solve my issue but still unsolved so im trying to build automated telegram workflow that create marketing image or video using nano banana or veo, check the scre…

---

## [If statement looping over static list: No data found for item-index: "1" \[item 1\]](https://community.n8n.io/t/if-statement-looping-over-static-list-no-data-found-for-item-index-1-item-1/185426)

<div class="topic-metadata">

**Author:** [@djsymo](https://community.n8n.io/u/djsymo)\
**Replies:** 1\
**Last updated:** [September 10, 2025, 5:26am UTC](https://community.n8n.io/t/if-statement-looping-over-static-list-no-data-found-for-item-index-1-item-1/185426 "2025-09-10T05:26:11Z")

</div>

Describe the problem/error/question I dont know why this is so hard but I want to check if a unique id exists in a list or array. I get what is happening in that the if node is running for each input item which in my cas…

---

## [Add IF condition to check for Attachment in IMAP](https://community.n8n.io/t/add-if-condition-to-check-for-attachment-in-imap/184287)

<div class="topic-metadata">

**Author:** [@Anirudh\_Tugawe](https://community.n8n.io/u/Anirudh_Tugawe)\
**Replies:** 1\
**Last updated:** [September 8, 2025, 6:49pm UTC](https://community.n8n.io/t/add-if-condition-to-check-for-attachment-in-imap/184287 "2025-09-08T18:49:46Z")

</div>

Hello, greetings of the day! :waving\_hand: This is my first post here in the n8n community. I’m currently working on a basic workflow where I’m trying to: Read emails using the IMAP Trigger. Filter only those emai…

---

## [How can I get only the non matching values? ISSUE](https://community.n8n.io/t/how-can-i-get-only-the-non-matching-values-issue/178462)

<div class="topic-metadata">

**Author:** [@Diego\_Suarez\_Perilla](https://community.n8n.io/u/Diego_Suarez_Perilla)\
**Replies:** 5\
**Last updated:** [August 29, 2025, 9:04pm UTC](https://community.n8n.io/t/how-can-i-get-only-the-non-matching-values-issue/178462 "2025-08-29T21:04:59Z")

</div>

I need to join two IDs — one comes from an email, and the other is stored in Google Sheets. I want to check which ones exist, keep the ones that don’t exist, and exclude the ones that do exist. I tried using a Merge no…

---

## [Level 1 course IF node incorrect](https://community.n8n.io/t/level-1-course-if-node-incorrect/40587)

<div class="topic-metadata">

**Author:** [@Superdan](https://community.n8n.io/u/Superdan)\
**Replies:** 6\
**Last updated:** [August 17, 2025, 4:35pm UTC](https://community.n8n.io/t/level-1-course-if-node-incorrect/40587 "2025-08-17T16:35:46Z")

</div>

In the cloud trial version the IF node False condition operates as a True statement in my review and is flawed. See enclosed pick as the IF statement does not filter the data (to show only 'processing" orderStatus) and …

---

## [Strange behaviour with if node and a boolean value](https://community.n8n.io/t/strange-behaviour-with-if-node-and-a-boolean-value/166842)

<div class="topic-metadata">

**Author:** [@andrew.t9](https://community.n8n.io/u/andrew.t9)\
**Replies:** 9\
**Last updated:** [August 13, 2025, 5:29am UTC](https://community.n8n.io/t/strange-behaviour-with-if-node-and-a-boolean-value/166842 "2025-08-13T05:29:40Z")

</div>

Describe the problem/error/question I have a Notion Node where I load a database page. Then I want to make specific changes based on the given attributes. I have a attribute which is a checkbox and which I parse to a boo…

---

## [How to use IF and Merge together since only 1 branch gets activated?](https://community.n8n.io/t/how-to-use-if-and-merge-together-since-only-1-branch-gets-activated/164004)

<div class="topic-metadata">

**Author:** [@mrey](https://community.n8n.io/u/mrey)\
**Replies:** 1\
**Last updated:** [August 7, 2025, 8:11pm UTC](https://community.n8n.io/t/how-to-use-if-and-merge-together-since-only-1-branch-gets-activated/164004 "2025-08-07T20:11:17Z")

</div>

Hi, I’m trying to do a condition “IF contact exists, update it with the known ID, otherwise create the contact (this generates an ID), then Merge the ID so that the downstream node reference the Contact ID (wether it a…

---

## [If node does pass data to next node - When will it be fixed?](https://community.n8n.io/t/if-node-does-pass-data-to-next-node-when-will-it-be-fixed/156645)

<div class="topic-metadata">

**Author:** [@Pixabits](https://community.n8n.io/u/Pixabits)\
**Replies:** 1\
**Last updated:** [July 26, 2025, 12:57pm UTC](https://community.n8n.io/t/if-node-does-pass-data-to-next-node-when-will-it-be-fixed/156645 "2025-07-26T12:57:23Z")

</div>

Describe the problem/error/question My If node is not passing data to the next node, or at least it appears that way. This is the same issue as was raised in this post: If node does pass data to next node The apparent…

---

## [Error in IF node while comparing values between previous two nodes](https://community.n8n.io/t/error-in-if-node-while-comparing-values-between-previous-two-nodes/154102)

<div class="topic-metadata">

**Author:** [@Pranav\_Dhopey](https://community.n8n.io/u/Pranav_Dhopey)\
**Replies:** 2\
**Last updated:** [July 23, 2025, 3:40am UTC](https://community.n8n.io/t/error-in-if-node-while-comparing-values-between-previous-two-nodes/154102 "2025-07-23T03:40:50Z")

</div>

Describe the problem/error/question In the IF node when i try to compare the output of previous two nodes it is failing to do so and getting an error as shown in the screenshot Optimized Flow Trigger → Search PDFs → L…

---

## [Need Help , I can't Get data from if node false branch](https://community.n8n.io/t/need-help-i-cant-get-data-from-if-node-false-branch/153229)

<div class="topic-metadata">

**Author:** [@talha.mt](https://community.n8n.io/u/talha.mt)\
**Replies:** 1\
**Last updated:** [July 21, 2025, 10:15am UTC](https://community.n8n.io/t/need-help-i-cant-get-data-from-if-node-false-branch/153229 "2025-07-21T10:15:02Z")

</div>

Describe the problem/error/question Hello i am ner to n8n.i need help. I am working on Sales mail Automation If sheets will have thread ID then it will go to false branch , check follow up interval days and pass data l…

---

## [\[after if node\] No fields - node executed, but no items were sent on this branch](https://community.n8n.io/t/after-if-node-no-fields-node-executed-but-no-items-were-sent-on-this-branch/139897)

<div class="topic-metadata">

**Author:** [@Romay](https://community.n8n.io/u/Romay)\
**Replies:** 1\
**Last updated:** [June 28, 2025, 12:13am UTC](https://community.n8n.io/t/after-if-node-no-fields-node-executed-but-no-items-were-sent-on-this-branch/139897 "2025-06-28T00:13:03Z")

</div>

I’m not exactly a newbie, but I’m specifically stuck in my Workflow. Please help me understand how to pass data from the “telegram node” further after the “if-node”. Why after “upstart user” I can refer to ‘update’ in t…

---

## [Help with conditional expression: check if item exists and return different HTML](https://community.n8n.io/t/help-with-conditional-expression-check-if-item-exists-and-return-different-html/129651)

<div class="topic-metadata">

**Author:** [@Arthur\_LAFAIX](https://community.n8n.io/u/Arthur_LAFAIX)\
**Replies:** 2\
**Last updated:** [June 9, 2025, 7:38pm UTC](https://community.n8n.io/t/help-with-conditional-expression-check-if-item-exists-and-return-different-html/129651 "2025-06-09T19:38:11Z")

</div>

Describe the problem/error/question Hi everyone, I’m working on a workflow in n8n and I need help writing a conditional expression. What I want to do: Inside an expression (used in an HTML field), I want to check if a…

---

## [IF node results in the wrong branch](https://community.n8n.io/t/if-node-results-in-the-wrong-branch/126249)

<div class="topic-metadata">

**Author:** [@jabbson](https://community.n8n.io/u/jabbson)\
**Replies:** 1\
**Last updated:** [June 3, 2025, 4:55pm UTC](https://community.n8n.io/t/if-node-results-in-the-wrong-branch/126249 "2025-06-03T16:55:38Z")

</div>

Describe the problem/error/question When checking for a condition if the IF node, always ending up with the False branch in the output, even though both conditions (connected by AND) are True. What is the error message …

---

## [Loop if for state in HTTP node](https://community.n8n.io/t/loop-if-for-state-in-http-node/116061)

<div class="topic-metadata">

**Author:** [@Bitshock1015](https://community.n8n.io/u/Bitshock1015)\
**Replies:** 5\
**Last updated:** [May 18, 2025, 7:58pm UTC](https://community.n8n.io/t/loop-if-for-state-in-http-node/116061 "2025-05-18T19:58:46Z")

</div>

Hi guys, I’m new to using the N8N. I use some features of the SIEM QRadar API, to speed up some searches via API and search results for a pipeline under construction, using CHATGPT. My question is: In the API, at a ce…

---

## [IF node AND math with negative digits fails TRUE result. Bug?](https://community.n8n.io/t/if-node-and-math-with-negative-digits-fails-true-result-bug/115353)

<div class="topic-metadata">

**Author:** [@Dmitri\_Cryo](https://community.n8n.io/u/Dmitri_Cryo)\
**Replies:** 4\
**Last updated:** [May 14, 2025, 6:50pm UTC](https://community.n8n.io/t/if-node-and-math-with-negative-digits-fails-true-result-bug/115353 "2025-05-14T18:50:29Z")

</div>

Describe the problem/error/question It seems a bug and IF not working correctly with negative digit (I\`ve added separator . to digits for human readable view I have IF node to compare overdue time in milliseconds The i…

---

## [Add \[Always Output Data\] for If node for false](https://community.n8n.io/t/add-always-output-data-for-if-node-for-false/16390)

<div class="topic-metadata">

**Author:** [@shimaper](https://community.n8n.io/u/shimaper)\
**Replies:** 4\
**Last updated:** [April 26, 2025, 9:14am UTC](https://community.n8n.io/t/add-always-output-data-for-if-node-for-false/16390 "2025-04-26T09:14:20Z")

</div>

It would help if there was a node for: In parameters for If node have Always Output Data, but it works only for true statement. But the idea is to add a switch that will Output Data by users choice: Output Data from both …

---

## [If node is KO?](https://community.n8n.io/t/if-node-is-ko/105101)

<div class="topic-metadata">

**Author:** [@Alexis\_Petit](https://community.n8n.io/u/Alexis_Petit)\
**Replies:** 2\
**Last updated:** [April 23, 2025, 3:27pm UTC](https://community.n8n.io/t/if-node-is-ko/105101 "2025-04-23T15:27:03Z")

</div>

Hello n8n community, I’m experiencing an issue with the IF node in one of my workflows: it doesn’t seem to follow the defined conditions accurately, or at least it behaves unexpectedly in some cases. Even when both con…

---

## [Accessing \`false\` items of an \`if\` node – after exiting a loop](https://community.n8n.io/t/accessing-false-items-of-an-if-node-after-exiting-a-loop/102506)

<div class="topic-metadata">

**Author:** [@juekr](https://community.n8n.io/u/juekr)\
**Replies:** 2\
**Last updated:** [April 17, 2025, 3:19pm UTC](https://community.n8n.io/t/accessing-false-items-of-an-if-node-after-exiting-a-loop/102506 "2025-04-17T15:19:11Z")

</div>

Describe the problem/error/question I’ve built an self-improving loop in which an AI suggests a (netter) title for a new podcast idea, which is then fed into a second AI which rates the suggestion according to a given ru…

---

## [If statement sends a blank record and is breaking my workflow](https://community.n8n.io/t/if-statement-sends-a-blank-record-and-is-breaking-my-workflow/97675)

<div class="topic-metadata">

**Author:** [@Joshua\_B](https://community.n8n.io/u/Joshua_B)\
**Replies:** 1\
**Last updated:** [April 6, 2025, 7:31pm UTC](https://community.n8n.io/t/if-statement-sends-a-blank-record-and-is-breaking-my-workflow/97675 "2025-04-06T19:31:40Z")

</div>

I have an if statement to count if there are multiple records. If there are not the false just ends. If there are it should follow a series of other steps. It works fine when there are more than 2 records but when there …

---

## [Addressing field for all objects in array](https://community.n8n.io/t/addressing-field-for-all-objects-in-array/88604)

<div class="topic-metadata">

**Author:** [@bluedog](https://community.n8n.io/u/bluedog)\
**Replies:** 2\
**Last updated:** [March 16, 2025, 12:55am UTC](https://community.n8n.io/t/addressing-field-for-all-objects-in-array/88604 "2025-03-16T00:55:29Z")

</div>

Describe the problem/error/question My HTTP Request node returns an array with multiple objects which themselves are arrays. I want to filter using the If node to only select objects where the created\_at date is within t…

---

## [How do I access nested data from a IF node?](https://community.n8n.io/t/how-do-i-access-nested-data-from-a-if-node/85498)

<div class="topic-metadata">

**Author:** [@flowjoe](https://community.n8n.io/u/flowjoe)\
**Replies:** 2\
**Last updated:** [March 12, 2025, 8:42pm UTC](https://community.n8n.io/t/how-do-i-access-nested-data-from-a-if-node/85498 "2025-03-12T20:42:59Z")

</div>

Hey n8n community, Can anyone explain why this IF node data is not accessible when I use a $ifEmpty() expression? The node returns undefined even though there is data and if I access without the $ifEmpty() expression th…

---

## [If node, payload](https://community.n8n.io/t/if-node-payload/85541)

<div class="topic-metadata">

**Author:** [@drschell](https://community.n8n.io/u/drschell)\
**Replies:** 2\
**Last updated:** [March 7, 2025, 9:28pm UTC](https://community.n8n.io/t/if-node-payload/85541 "2025-03-07T21:28:50Z")

</div>

Requirement I need to either insert or update a Google Calendar event. I have an IF node where: • The TRUE branch updates the event if a calendar event ID exists. • The FALSE branch inserts a new event if no ID is fou…

---

## [Form logic](https://community.n8n.io/t/form-logic/74595)

<div class="topic-metadata">

**Author:** [@Valters\_Zilvinskus](https://community.n8n.io/u/Valters_Zilvinskus)\
**Replies:** 5\
**Last updated:** [February 15, 2025, 3:45pm UTC](https://community.n8n.io/t/form-logic/74595 "2025-02-15T15:45:18Z")

</div>

Hello everyone. I am trying a little bit complex multiple page form. So in first step user fills out data needed and then gets sent to according form depending how many travelers are applying for travel. This is the fir…

[Next page](https://community.n8n.io/tag/if/71.md?match_all_tags=true&page=1&tags%5B%5D=if)
