# Switching between two analogue values (manual/automatic) with a dashboard switch

**URL:** <https://discourse.nodered.org/t/switching-between-two-analogue-values-manual-automatic-with-a-dashboard-switch/80184>\
**Category:** Dashboard\
**Tags:** function-node\
**Created:** [31 July 2023 10:30 UTC](https://discourse.nodered.org/t/switching-between-two-analogue-values-manual-automatic-with-a-dashboard-switch/80184 "2023-07-31T10:30:48Z")\
**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:** [31 July 2023 12:40 UTC](https://discourse.nodered.org/t/switching-between-two-analogue-values-manual-automatic-with-a-dashboard-switch/80184/4 "2023-07-31T12:40:44Z")

</div>

> [@Popolackie](#):
>
> could you explain how to post a snippet?

Select the nodes and Ctrl-E (or Export via menu). When pasting use the `</>` button at the top of the forum entry window. See this post for more details - [How to share code or flow json](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)

> [@Popolackie](#):
>
> Every message comming in then should be propageted to either one or the other direction. Not waiting fpr three messages

The Join node does not need to wait for three messages every time. You can select 'and on subsequent messages' and then it will send the combined message every time any one comes in.  
Once you have them in one message you can use a Switch node to only pass on the message when the topic matches the analogue topic, and then another to split the path dependent on the value of the binary.

**[Edit]** Actually you probably don't want the first Switch, as you need to change the output if the binary value changes.

---

_[View the full topic](https://discourse.nodered.org/t/switching-between-two-analogue-values-manual-automatic-with-a-dashboard-switch/80184)._
