# Help with logic switching

**URL:** <https://discourse.nodered.org/t/help-with-logic-switching/31873>\
**Category:** General\
**Created:** [22 August 2020 10:21 UTC](https://discourse.nodered.org/t/help-with-logic-switching/31873 "2020-08-22T10:21:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [22 August 2020 12:27 UTC](https://discourse.nodered.org/t/help-with-logic-switching/31873/4 "2020-08-22T12:27:06Z")

</div>

The key thing is to make sure each input has a different topic. It has to remember the previous value because all nodes only get one message at a time, they never come in at the same time.

---

_[View the full topic](https://discourse.nodered.org/t/help-with-logic-switching/31873)._
