# If node =\> "is empty" on a string

**URL:** <https://community.n8n.io/t/if-node-is-empty-on-a-string/36036>\
**Category:** Feature Requests (done)\
**Tags:** core\
**Created:** [January 29, 2024, 8:20am UTC](https://community.n8n.io/t/if-node-is-empty-on-a-string/36036 "2024-01-29T08:20:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![n8nonmac](https://avatars.discourse-cdn.com/v4/letter/n/ce73a5/32.png) [@n8nonmac](https://community.n8n.io/u/n8nonmac)\
**Post date:** [January 29, 2024, 8:20am UTC](https://community.n8n.io/t/if-node-is-empty-on-a-string/36036/1 "2024-01-29T08:20:16Z")

</div>

## The idea is:

Bring back the “is empty” option in the IF node on a string.

## My use case:

My string is empty. I cannot check if it is empty.

## I think it would be beneficial to add this because:

It was easier than messing with JS to return a true / false

Before:

 ![CleanShot 2024-01-29 at 09.17.30](https://europe1.discourse-cdn.com/n8n/original/3X/c/7/c776884d5449465430afbe5a46be8c27a6a1aab7.png)

After:

 ![CleanShot 2024-01-29 at 09.20.03](https://europe1.discourse-cdn.com/n8n/original/3X/7/6/7697fdebc23c29706d4486124578d86a69a7113d.png)

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [January 29, 2024, 2:44pm UTC](https://community.n8n.io/t/if-node-is-empty-on-a-string/36036/2 "2024-01-29T14:44:47Z")

</div>

Hey @n8nonmac,

Does using “does not exist” do the same thing?

---

<div class="post-metadata">

**Author:** ![lightcom](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lightcom/32/36289_2.png) [@lightcom](https://community.n8n.io/u/lightcom)\
**Post date:** [January 29, 2024, 3:32pm UTC](https://community.n8n.io/t/if-node-is-empty-on-a-string/36036/3 "2024-01-29T15:32:20Z")

</div>

not works.  
Same behavior

> [@New IF node not working as expected when check "empty value" (return "if empty")](http://community.n8n.io/t/new-if-node-not-working-as-expected-when-check-empty-value-return-if-empty/35540):
>
> The IF node is not performing the correct filtering. Parameters with no value on the exists condition skip empty values, when in the old IF node the “if not empty” rule discarded those values that were empty. Accordingly, there is no analog of if not empty in the new if node, I think this is a bug. Please share your workflow Share the output returned by the last node Information on your n8n setup \*\*n8n version:1.24.1 \*\*Database (default: SQLite):default \*\*n8n EXECUTION…

---

<div class="post-metadata">

**Author:** ![giulioandreini](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/giulioandreini/32/20129_2.png) [@giulioandreini](https://community.n8n.io/u/giulioandreini)\
**Post date:** [February 5, 2024, 11:21am UTC](https://community.n8n.io/t/if-node-is-empty-on-a-string/36036/4 "2024-02-05T11:21:16Z")

</div>

Hi @n8nonmac  
this feature was released in version 1.27.0  
“Is empty”/“Is not empty” is now available in If, Filter, Switch nodes.

All the best

---

<div class="post-metadata">

**Author:** ![Cleiton\_Borges](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/cleiton_borges/32/35059_2.png) [@Cleiton\_Borges](https://community.n8n.io/u/Cleiton_Borges)\
**Post date:** [February 6, 2024, 12:36am UTC](https://community.n8n.io/t/if-node-is-empty-on-a-string/36036/5 "2024-02-06T00:36:04Z")

</div>

Thank you!
