# Disable flow if false

**URL:** <https://discourse.nodered.org/t/disable-flow-if-false/68830>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [10 October 2022 21:46 UTC](https://discourse.nodered.org/t/disable-flow-if-false/68830 "2022-10-10T21:46:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![niklasgisselman](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/niklasgisselman/32/68973_2.png) [@niklasgisselman](https://discourse.nodered.org/u/niklasgisselman)\
**Post date:** [10 October 2022 21:46 UTC](https://discourse.nodered.org/t/disable-flow-if-false/68830/1 "2022-10-10T21:46:49Z")

</div>

Hi!

I'm trying to insert a boolean to disable a flow, but stuggling with the formatting/setup. How should I configure the current state node to just forward all data if true, else not stop the flow.

Debug 1:  
adjustment : msg.payload : undefined  
undefined  
Debug 2: adjustment : msg.payload : number  
-2

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/6/96052d1238487c3541693e14c7889b360bd41a9b.png)

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/7/d7b3410ab00003dc022d2a8731fb20de447a51b9.png)

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [11 October 2022 08:39 UTC](https://discourse.nodered.org/t/disable-flow-if-false/68830/2 "2022-10-11T08:39:27Z")

</div>

There are not many here that use HA so you might have problems getting help here. You might be better on an HA forum. Alternatively use a node-red-contrib-simple-gate to block the flow instead of the HA node.

---

<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:** [10 December 2022 08:40 UTC](https://discourse.nodered.org/t/disable-flow-if-false/68830/3 "2022-12-10T08:40:01Z")

</div>

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