# Newbie : "OR" condition

**URL:** https://community.homey.app/t/newbie-or-condition/17456
**Category:** Flows
**Created:** [August 28, 2019, 7:52pm UTC](https://community.homey.app/t/newbie-or-condition/17456 "2019-08-28T19:52:00Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Christian\_Fatzer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian_fatzer/32/12929_2.png) [@Christian\_Fatzer](https://community.homey.app/u/Christian_Fatzer)
#### Post date: [August 28, 2019, 7:52pm UTC](https://community.homey.app/t/newbie-or-condition/17456/1 "2019-08-28T19:52:00Z")

</div>

Hello,

How could I trigger a flow  
if the motion alarm of device 1 is triggered  
OR  
if the motion alarm of device 2 is triggered  
?

I saw that a flow start with when followed by AND… and then I can add OR. But it seems that the two first conditions are linked with a “AND”.

Thank you in advance.

Chris

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [August 28, 2019, 7:54pm UTC](https://community.homey.app/t/newbie-or-condition/17456/2 "2019-08-28T19:54:45Z")

</div>

It’s a bit counter-intuitive: create two AND cards, press on the one that you want to make an OR card, and an “or” divider will appear. Then move the card to below that divider.

---

<div class="post-metadata">

### Author: ![Neuron44](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/neuron44/32/9492_2.png) [@Neuron44](https://community.homey.app/u/Neuron44)
#### Post date: [August 29, 2019, 11:47am UTC](https://community.homey.app/t/newbie-or-condition/17456/3 "2019-08-29T11:47:32Z")

</div>

Robertklep means that you need to press and hold the card 😉  
I agree, a bit counter-intuitive

---

<div class="post-metadata">

### Author: ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)
#### Post date: [August 29, 2019, 11:50am UTC](https://community.homey.app/t/newbie-or-condition/17456/4 "2019-08-29T11:50:25Z")

</div>

And it looks like Christian wants the “or” for the trigger part.

---

<div class="post-metadata">

### Author: ![Christian\_Fatzer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian_fatzer/32/12929_2.png) [@Christian\_Fatzer](https://community.homey.app/u/Christian_Fatzer)
#### Post date: [August 29, 2019, 12:17pm UTC](https://community.homey.app/t/newbie-or-condition/17456/5 "2019-08-29T12:17:33Z")

</div>

Yes, you understood correctly, for the trigger part.

---

<div class="post-metadata">

### Author: ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)
#### Post date: [August 29, 2019, 12:20pm UTC](https://community.homey.app/t/newbie-or-condition/17456/6 "2019-08-29T12:20:09Z")

</div>

OR only exists for conditions, not for triggers. So either you need to create a more generic trigger (“a motion alarm was triggered”) and use a condition to select particular devices, or you need to create two flows (one for each device).

---

<div class="post-metadata">

### Author: ![Rocodamelshekima](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rocodamelshekima/32/8209_2.png) [@Rocodamelshekima](https://community.homey.app/u/Rocodamelshekima)
#### Post date: [August 29, 2019, 12:46pm UTC](https://community.homey.app/t/newbie-or-condition/17456/7 "2019-08-29T12:46:45Z")

</div>

![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/9/9c0ba682f2024730245b7c44b439528d025f662c.jpeg)

Just an example

---

<div class="post-metadata">

### Author: ![ArnoP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/arnop/32/13709_2.png) [@ArnoP](https://community.homey.app/u/ArnoP)
#### Post date: [August 29, 2019, 1:46pm UTC](https://community.homey.app/t/newbie-or-condition/17456/8 "2019-08-29T13:46:22Z")

</div>

You should make it like this (like robertklep told above)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/2X/a/a8cfc28efa5ab77c86ee918d6a8bbfb000c16eb2.png)
