# Join node - pass only every 2nd subsequent msg?

**URL:** <https://discourse.nodered.org/t/join-node-pass-only-every-2nd-subsequent-msg/23516>\
**Category:** General\
**Created:** [23 March 2020 16:38 UTC](https://discourse.nodered.org/t/join-node-pass-only-every-2nd-subsequent-msg/23516 "2020-03-23T16:38:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![m\_elias](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@m\_elias](https://discourse.nodered.org/u/m_elias)\
**Post date:** [23 March 2020 16:38 UTC](https://discourse.nodered.org/t/join-node-pass-only-every-2nd-subsequent-msg/23516/1 "2020-03-23T16:38:08Z")

</div>

I'm using a join node in manual mode, to join 7 payloads by topic into a key/value object. After the initial 7 payloads are joined, the message is sent, perfect. Now, two of the messages are temperature and humidity updates and they each trigger a new joined message, is there a clever/simple way to only send every 2nd subsequent msg with a timeout in case either the temp or humidity fails to update? I tried to run the temp/hum msgs through their own join node without the "send subsequent msg" option checked, but then they get added to the main join node's object as a new combined object. I could rework my downflow nodes to handle that except that the extra combined object's key changes depending on which temp or humidity msg arrived last in their separate join node.

---

<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:** [23 March 2020 17:08 UTC](https://discourse.nodered.org/t/join-node-pass-only-every-2nd-subsequent-msg/23516/2 "2020-03-23T17:08:34Z")

</div>

Combine the temp and humidity first and put that through a change node to set the topic to something like "temphum", then they will always appear as that in the second join.

---

<div class="post-metadata">

**Author:** ![m\_elias](https://avatars.discourse-cdn.com/v4/letter/m/94ad74/32.png) [@m\_elias](https://discourse.nodered.org/u/m_elias)\
**Post date:** [24 March 2020 17:35 UTC](https://discourse.nodered.org/t/join-node-pass-only-every-2nd-subsequent-msg/23516/3 "2020-03-24T17:35:04Z")

</div>

Ha ha, I was already that far along, I had the change node wired up but I couldn't see the obvious solution. Thanks again!

---

<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:** [23 May 2020 17:35 UTC](https://discourse.nodered.org/t/join-node-pass-only-every-2nd-subsequent-msg/23516/4 "2020-05-23T17:35:07Z")

</div>

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