# Using “and”, “or” in normal flow

**URL:** https://community.homey.app/t/using-and-or-in-normal-flow/128928
**Category:** Questions & Help
**Created:** [January 26, 2025, 8:56pm UTC](https://community.homey.app/t/using-and-or-in-normal-flow/128928 "2025-01-26T20:56:14Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Allard\_Schaap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/allard_schaap/32/70112_2.png) [@Allard\_Schaap](https://community.homey.app/u/Allard_Schaap)
#### Post date: [January 26, 2025, 8:56pm UTC](https://community.homey.app/t/using-and-or-in-normal-flow/128928/1 "2025-01-26T20:56:14Z")

</div>

Hi,

I want to use 3 (virtual) switches and a mainswitch

In a flow I want to switch off the main switch only then when all 3 switches are off.

In a normal flow it seems not te be working.

How can I fix this?

Thanks,

Allard

 ![IMG_2512](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/d/1d2a3415f46c20d6c506483b6e1e7af18d1b3e3c.png)  
 ![IMG_2513](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/1/d1f5d2dc2d3b57506228516c40fe1e017262df5d.png)

---

<div class="post-metadata">

### Author: ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)
#### Post date: [January 26, 2025, 10:14pm UTC](https://community.homey.app/t/using-and-or-in-normal-flow/128928/2 "2025-01-26T22:14:56Z")

</div>

You will need three Flows, one triggered by each switch and they each check the other switches are off in the And section.  
Unfortunately, my Dutch is not good enough to know if the trigger card is for the switch is turned off, or changed state. If its the later then you also need to check that in the And section.

---

<div class="post-metadata">

### Author: ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)
#### Post date: [January 26, 2025, 10:15pm UTC](https://community.homey.app/t/using-and-or-in-normal-flow/128928/3 "2025-01-26T22:15:57Z")

</div>

The IF is an action that triggers the flow.  
The AND is a condition that has to be met (only!) at the time the action at IF is performed.

So in your example only the “energieprijs hoog/laag” is a trigger, after which is checked if what you entered at AND is true.

As @Adrian_Rockall mentioned, you will need to create 3 flows, all with different actions for IF and the other two conditions at AND.

---

<div class="post-metadata">

### Author: ![Allard\_Schaap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/allard_schaap/32/70112_2.png) [@Allard\_Schaap](https://community.homey.app/u/Allard_Schaap)
#### Post date: [January 26, 2025, 10:41pm UTC](https://community.homey.app/t/using-and-or-in-normal-flow/128928/5 "2025-01-26T22:41:00Z")

</div>

Ok thanks ‘!

I will try!

Regards,

Allard

---

<div class="post-metadata">

### Author: ![Allard\_Schaap](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/allard_schaap/32/70112_2.png) [@Allard\_Schaap](https://community.homey.app/u/Allard_Schaap)
#### Post date: [January 26, 2025, 11:39pm UTC](https://community.homey.app/t/using-and-or-in-normal-flow/128928/7 "2025-01-26T23:39:15Z")

</div>

Succeeded!! 😃 thanks

---

<div class="post-metadata">

### Author: ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)
#### Post date: [January 27, 2025, 12:37am UTC](https://community.homey.app/t/using-and-or-in-normal-flow/128928/9 "2025-01-27T00:37:25Z")

</div>

That’s fine. but you can also look in the support section for **_or_ and _else_**.  
[Using-Or-and-Else-in-Flows](https://support.homey.app/hc/en-us/articles/360015464674-Using-Or-and-Else-in-Flows)
