# Forward payload from previous node based on input boolean node \[SOLVED\]

**URL:** <https://discourse.nodered.org/t/forward-payload-from-previous-node-based-on-input-boolean-node-solved/69213>\
**Category:** General\
**Created:** [18 October 2022 18:17 UTC](https://discourse.nodered.org/t/forward-payload-from-previous-node-based-on-input-boolean-node-solved/69213 "2022-10-18T18:17:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![homonto](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/homonto/32/68035_2.png) [@homonto](https://discourse.nodered.org/u/homonto)\
**Post date:** [18 October 2022 18:17 UTC](https://discourse.nodered.org/t/forward-payload-from-previous-node-based-on-input-boolean-node-solved/69213/1 "2022-10-18T18:17:09Z")

</div>

Hi, I got completely stopped by quite simple issue:  
Node sends data (i.e. temperature) but then I want this payload to go to the next one ONLY if the switch (input boolean) is ON. Apparently, when I add current state node, on the output of it I have "on" or "off" instead of what I wanted: the temperature from the previous node.  
I am missing simple bit probably but I am not able to go further. Is there any guru who does not mind to help to the newbie? 😉 Thx.

 ![Screenshot 2022-10-18 at 19.15.58](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/4/b4ffc8b04bdf5fba2e60561f743ce6d27aea0a65.png)

---

<div class="post-metadata">

**Author:** ![homonto](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/homonto/32/68035_2.png) [@homonto](https://discourse.nodered.org/u/homonto)\
**Post date:** [18 October 2022 19:04 UTC](https://discourse.nodered.org/t/forward-payload-from-previous-node-based-on-input-boolean-node-solved/69213/2 "2022-10-18T19:04:40Z")

</div>

I think I solved it by removing everything related to payload 😉

 ![Screenshot 2022-10-18 at 20.03.52](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/c/fc8f1841086f2de257f0e64159adced80b357db0.jpeg)

---

<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:** [1 November 2022 19:04 UTC](https://discourse.nodered.org/t/forward-payload-from-previous-node-based-on-input-boolean-node-solved/69213/3 "2022-11-01T19:04:45Z")

</div>

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