# Flows - Logic or "or"

**URL:** https://community.homey.app/t/flows-logic-or-or/43230
**Category:** Flows
**Created:** [February 18, 2021, 2:30pm UTC](https://community.homey.app/t/flows-logic-or-or/43230 "2021-02-18T14:30:01Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)
#### Post date: [February 18, 2021, 2:30pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/1 "2021-02-18T14:30:01Z")

</div>

Probally a stupid question but could not find it in the forum. In the flow i want more then one to contain a value. I can use the “or” part in “this” part of the flow but it is a maximum of 3 card with “or” Is there a way to have more names like “Wesley; Soraya; Sky” in one logic card?

 ![Screenshot_20210218-152320_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/3/8/3898c85e1c6a2e23011330a47f6c1e11a40fb564.jpeg)

[https://homey.app/f/sOlzRu](https://homey.app/f/sOlzRu)

---

<div class="post-metadata">

### Author: ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)
#### Post date: [February 18, 2021, 8:47pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/2 "2021-02-18T20:47:00Z")

</div>

Not really a stupid question, it is possible but not that obvious.

I see Two options,  
There is a Condition: Logic - Tag Contains “SomeTextOrTag.”  
The one should work but the other way around, you want to test if the tag is one of a couple of known words/names.  
So create a Logic Text with all names (See FlowNote. The DOTS in between prevents returning true on a partial match and needs dots around the Label to test. You can use any other character for that.  
(So: “.one.two.three.four.five.six.seven.” Contains . [label] . \<\< Check these Dots around the label!)

The other is with Reverse Logic,  
if A or B or C or D === Not ( Not A AND Not B AND Not C AND Not D )  
As in the Condition you can add “unlimited” ANDs you only need to swap Then and Else  
(as we cant use a Conditional NOT over all ANDs )

Have Phun!

---

<div class="post-metadata">

### Author: ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)
#### Post date: [February 18, 2021, 9:01pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/6 "2021-02-18T21:01:50Z")

</div>

would this work then?? not really logical…

And i need one card in the “then” box

[https://homey.app/f/2-iYSu](https://homey.app/f/2-iYSu)

---

<div class="post-metadata">

### Author: ![Dijker](https://avatars.discourse-cdn.com/v4/letter/d/b9bd4f/32.png) [@Dijker](https://community.homey.app/u/Dijker)
#### Post date: [February 18, 2021, 9:06pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/7 "2021-02-18T21:06:05Z")

</div>

> [@wesley\_w](#):
>
> would this work then??

Contains “Chelina” ? (or NOT?) guess forgot to invert

Yep guess that should work if I understand your question!  
(or is she your mother in law you want to trigger on 😉 )

Just Test and fill in one of the names or another name!

---

<div class="post-metadata">

### Author: ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)
#### Post date: [February 18, 2021, 9:07pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/8 "2021-02-18T21:07:12Z")

</div>

hahah good one… no 4 kids that can enter the front door without a key…

---

<div class="post-metadata">

### Author: ![ChrisBoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisboer/32/1252_2.png) [@ChrisBoer](https://community.homey.app/u/ChrisBoer)
#### Post date: [February 18, 2021, 9:20pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/9 "2021-02-18T21:20:33Z")

</div>

What hardware are you using for “face detect”

---

<div class="post-metadata">

### Author: ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)
#### Post date: [February 18, 2021, 9:21pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/10 "2021-02-18T21:21:25Z")

</div>

My Nest Hello. Since yesterday the Google Nest SDM was released in the Homey Community Store.

[https://homey.app/f/v\_k1Tu](https://homey.app/f/v_k1Tu)

---

<div class="post-metadata">

### Author: ![wesley\_w](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wesley_w/32/10127_2.png) [@wesley\_w](https://community.homey.app/u/wesley_w)
#### Post date: [February 18, 2021, 9:36pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/11 "2021-02-18T21:36:26Z")

</div>

It works! using the reversed logic. It is a bit unnatural to build you flow like this but is works. thanks

---

<div class="post-metadata">

### Author: ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)
#### Post date: [February 18, 2021, 9:38pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/12 "2021-02-18T21:38:27Z")

</div>

If the label from the face match can contain multiple names (Wesley, Sky) the first solution (with the dots) won’t work. The second one with the reverse logic will. I guess that is why there was a contains clause in the original question - when two or more people are in the frame at the same time)?

The reverse logic should then use not contains for all the tests.

---

<div class="post-metadata">

### Author: ![ChrisBoer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/chrisboer/32/1252_2.png) [@ChrisBoer](https://community.homey.app/u/ChrisBoer)
#### Post date: [February 21, 2021, 8:00pm UTC](https://community.homey.app/t/flows-logic-or-or/43230/13 "2021-02-21T20:00:11Z")

</div>

> [@wesley\_w](#):
>
> Nest Hello

Nice I have a Nest Cam but I don’t have the face detect option 😉

---

<div class="post-metadata">

### Author: ![DidierVU](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/didiervu/32/12458_2.png) [@DidierVU](https://community.homey.app/u/DidierVU)
#### Post date: [February 22, 2021, 9:35am UTC](https://community.homey.app/t/flows-logic-or-or/43230/14 "2021-02-22T09:35:47Z")

</div>

> [@ChrisBoer](#):
>
> Nice I have a Nest Cam but I don’t have the face detect option

Neither does the Nest Hello, you have to install [Face++ App voor Homey | Homey](https://homey.app/nl-be/app/com.gruijter.facepp/Face++/)
