# 2 conditions to launch action

**URL:** <https://discourse.nodered.org/t/2-conditions-to-launch-action/56210>\
**Category:** General\
**Created:** [6 January 2022 16:28 UTC](https://discourse.nodered.org/t/2-conditions-to-launch-action/56210 "2022-01-06T16:28:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![azertym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/azertym/32/52108_2.png) [@azertym](https://discourse.nodered.org/u/azertym)\
**Post date:** [6 January 2022 16:28 UTC](https://discourse.nodered.org/t/2-conditions-to-launch-action/56210/1 "2022-01-06T16:28:14Z")

</div>

Hi all,  
It's me again.

I make a new escape game.

I've 2 gameplay mode, long version and short version.  
In the short version i need to activate 6 weighing scale with HX711, this is ok. but at the moment i need to take 2 ways.

When i'm in short mode, i push on the 6 weighing scale and i play video and open the door.

When i'm in long mode, i push on the 6 weighing scale, i open an aisle with relay, i need to push 2 button, start video and open door.

Problem, I don't know how to merge information of the weighing scale and the button.

You can see my flow in this file.  
[Escape.json](https://discourse.nodered.org/uploads/short-url/zesYfvufuaQQAkohX98NRlkcgGB.json) (52.0 KB)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [6 January 2022 17:11 UTC](https://discourse.nodered.org/t/2-conditions-to-launch-action/56210/2 "2022-01-06T17:11:42Z")

</div>

> [@azertym](#):
>
> Problem, I don't know how to merge information of the weighing scale and the button

See [this article in the cookbook](https://cookbook.nodered.org/basic/join-streams) for an example of how to join messages into one object.

Once both values are in one object you can check / access both values at the same time.

---

<div class="post-metadata">

**Author:** ![azertym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/azertym/32/52108_2.png) [@azertym](https://discourse.nodered.org/u/azertym)\
**Post date:** [7 January 2022 06:03 UTC](https://discourse.nodered.org/t/2-conditions-to-launch-action/56210/3 "2022-01-07T06:03:57Z")

</div>

Thanks again Steve,

I readed this, but, In my flow is not work. when i use join, my action is not divise. For exemple i turn my button in short mode, the message is only "6" and go to in long mode too...

I want this condition :  
If my button is in short position (0)and i've "6" take short way.  
Or  
If my button is in long position (1) and i've "6" take long way.

Actually with join, if i only have 6 or short or long, the action start. And it's not good.

---

<div class="post-metadata">

**Author:** ![azertym](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/azertym/32/52108_2.png) [@azertym](https://discourse.nodered.org/u/azertym)\
**Post date:** [7 January 2022 14:59 UTC](https://discourse.nodered.org/t/2-conditions-to-launch-action/56210/4 "2022-01-07T14:59:07Z")

</div>

Hi all,

i maked a new version of my flow, but join doesn't work ... when i activate Stone, the signal go in Short and long mode ...

[flows.json](https://discourse.nodered.org/uploads/short-url/orxWtpeiRkFQbVoIMIQ4YcqOD66.json) (58.3 KB)

---

<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:** [8 March 2022 14:59 UTC](https://discourse.nodered.org/t/2-conditions-to-launch-action/56210/5 "2022-03-08T14:59:28Z")

</div>

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