# Getting Error in IF node

**URL:** <https://community.n8n.io/t/getting-error-in-if-node/22179>\
**Category:** Questions\
**Tags:** if\
**Created:** [January 23, 2023, 1:22pm UTC](https://community.n8n.io/t/getting-error-in-if-node/22179 "2023-01-23T13:22:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spinefit](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/spinefit/32/15071_2.png) [@Spinefit](https://community.n8n.io/u/Spinefit)\
**Post date:** [January 23, 2023, 1:22pm UTC](https://community.n8n.io/t/getting-error-in-if-node/22179/1 "2023-01-23T13:22:09Z")

</div>

Even after if node says it false the data also goes to flase value then my workflow giving an error

please see attached screenshots and code

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/2/e/2e95a123aead1c54fc30994950e5b593e2f80b28.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/b/8b002227a92c142c4e771f43a6bd47e480723204.png)

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [January 23, 2023, 8:14pm UTC](https://community.n8n.io/t/getting-error-in-if-node/22179/2 "2023-01-23T20:14:18Z")

</div>

Yes, that is currently expected behavior as the Merge-Node force executes nodes on the second input. The best workaround in most cases is to remove the Merge-Node (in your case Merge4) as it is actually most times not required, which is potentially also the case for you.

There is already a fix to behave differently in the future which will be released with n8n version 1.0.  
You can find the [PR here](https://github.com/n8n-io/n8n/pull/4238).

---

<div class="post-metadata">

**Author:** ![Spinefit](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/spinefit/32/15071_2.png) [@Spinefit](https://community.n8n.io/u/Spinefit)\
**Post date:** [January 24, 2023, 7:05am UTC](https://community.n8n.io/t/getting-error-in-if-node/22179/3 "2023-01-24T07:05:04Z")

</div>

but if i remove node merge it will rerun 2 times  
as i want to run the or merge only 1 time

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/e/7/e7b1491a15d0006aa8ce83d63f67be0e078882fd.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/a/e/ae9d999d0b15db910098cc64688d53e98aadda5e.png)

as in my case i already upload data to google sheets  
and use the data from google sheets

can u help ??

in a way i can pass only 1 data due to which i used merge

---

<div class="post-metadata">

**Author:** ![Spinefit](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/spinefit/32/15071_2.png) [@Spinefit](https://community.n8n.io/u/Spinefit)\
**Post date:** [January 25, 2023, 5:52am UTC](https://community.n8n.io/t/getting-error-in-if-node/22179/4 "2023-01-25T05:52:21Z")

</div>

solved i removed merge and added wait 10 secs 🙂

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [February 1, 2023, 5:52am UTC](https://community.n8n.io/t/getting-error-in-if-node/22179/5 "2023-02-01T05:52:36Z")

</div>

Closed on February 1, 2023, 5:52am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [July 26, 2023, 3:07pm UTC](https://community.n8n.io/t/getting-error-in-if-node/22179/6 "2023-07-26T15:07:23Z")

</div>

New version [`n8n@1.0.5`](https://github.com/n8n-io/n8n/releases/tag/n8n%401.0.5) got released which includes the [GitHub PR 4238](https://github.com/n8n-io/n8n/pull/4238).
