# Split node is broke

**URL:** <https://discourse.nodered.org/t/split-node-is-broke/87932>\
**Category:** General\
**Created:** [14 May 2024 07:51 UTC](https://discourse.nodered.org/t/split-node-is-broke/87932 "2024-05-14T07:51:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierredemay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pierredemay/32/90948_2.png) [@pierredemay](https://discourse.nodered.org/u/pierredemay)\
**Post date:** [14 May 2024 07:51 UTC](https://discourse.nodered.org/t/split-node-is-broke/87932/1 "2024-05-14T07:51:33Z")

</div>

Hi,

I just want to do two different things if the msg.payload.Debit exist.

 ![Capture d’écran 2024-05-14 à 09.48.42](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/8/c81cd38f81a93ae5b28c3b2fed48d037bbf290e0.png)

The problem is that don't go in the change node...

Can someone can help me ? Thank you.

---

<div class="post-metadata">

**Author:** ![Skaedian](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/skaedian/32/85790_2.png) [@Skaedian](https://discourse.nodered.org/u/Skaedian)\
**Post date:** [14 May 2024 08:00 UTC](https://discourse.nodered.org/t/split-node-is-broke/87932/2 "2024-05-14T08:00:30Z")

</div>

I tested this quickly. "is empty" will not work in this case, since "is empty" assumes that the msg.payload.Debit variable exists but has no value. Try "is null" and "is not null" instead. If msg.payload.Debit doesn't exist, "is null" will match is and the flow will go out of that point in the node.

 ![hallo_flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/2/1/2170cea8ada7200971b62958ad7b512478fa3475.png)

---

<div class="post-metadata">

**Author:** ![pierredemay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pierredemay/32/90948_2.png) [@pierredemay](https://discourse.nodered.org/u/pierredemay)\
**Post date:** [14 May 2024 08:18 UTC](https://discourse.nodered.org/t/split-node-is-broke/87932/3 "2024-05-14T08:18:52Z")

</div>

That's it ! Thank you Skaedian.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [28 May 2024 08:19 UTC](https://discourse.nodered.org/t/split-node-is-broke/87932/4 "2024-05-28T08:19:46Z")

</div>

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