# Difference between AND and ALL in advanced flows

**URL:** <https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102>\
**Category:** Questions & Help\
**Tags:** advancedflow\
**Created:** [October 8, 2022, 8:52pm UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102 "2022-10-08T20:52:10Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![Brane\_Brodnik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brane_brodnik/32/78912_2.png) [@Brane\_Brodnik](https://community.homey.app/u/Brane_Brodnik)\
**Post date:** [December 30, 2024, 6:32am UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/21 "2024-12-30T06:32:16Z")

</div>

> [@JohanP](#):
>
> Nice, so now I look like a fool replying to something thats now not in your post ? 😉
> 
> Add an [edit] next time please (and what you edited) if it’s not just a typo.

Sorry 😉

---

<div class="post-metadata">

**Author:** ![Brane\_Brodnik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brane_brodnik/32/78912_2.png) [@Brane\_Brodnik](https://community.homey.app/u/Brane_Brodnik)\
**Post date:** [December 30, 2024, 6:41am UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/22 "2024-12-30T06:41:45Z")

</div>

> [@Mike1233](#):
>
> Then you add an ANY card in the flow.  
> If al the windows are closed, or “yes” then the blue lines go to the ALL.  
> If a window is not closed, so no “yes”, the yellow line goes to ANY. And from ANY you send a notification.

It’s about structuring and simplicity, which is what ANY and ALL are used for.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [December 30, 2024, 9:08am UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/23 "2024-12-30T09:08:40Z")

</div>

ANY is actually useless. It works just as well if you just connect the cards, IE remove the ANY.

I just use ANY anywhere I want to prevent multiple lines crossing eachother, or the whole screen…  
That is in front or after multiple cards…

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [December 30, 2024, 11:04am UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/24 "2024-12-30T11:04:19Z")

</div>

A ‘false’ exit on a ANY-cardis nonsense.

There is no need for a ‘false’-exit on a ALL-card because it can easily be solved like this:

 ![Scherm­afbeelding 2024-12-30 om 11.48.12](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/d/7d25a4003d310004e2245665c70b46df403ec39f.png)

In fact with 3 AND-cards there are 6 different situations why the ALL-card is not true. And each situation may require a different THEN-card action.

 ![Scherm­afbeelding 2024-12-30 om 11.48.38](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/8/f815abfcbbf8c4417ff4c09efa201f0df39430e6.png)

---

<div class="post-metadata">

**Author:** ![Brane\_Brodnik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brane_brodnik/32/78912_2.png) [@Brane\_Brodnik](https://community.homey.app/u/Brane_Brodnik)\
**Post date:** [December 30, 2024, 4:27pm UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/25 "2024-12-30T16:27:35Z")

</div>

> A ‘false’ exit on a ANY-cardis nonsense.

I’m not so sure about it. It’s usefull in some sitautions for simplicity:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/2/42e78d9804a617d70e02d7b25ab265e320e0e185.png)

---

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [December 30, 2024, 4:29pm UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/26 "2024-12-30T16:29:54Z")

</div>

True, but you don’t _need_ to use an ANY card.

---

<div class="post-metadata">

**Author:** ![Brane\_Brodnik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brane_brodnik/32/78912_2.png) [@Brane\_Brodnik](https://community.homey.app/u/Brane_Brodnik)\
**Post date:** [December 30, 2024, 4:46pm UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/27 "2024-12-30T16:46:20Z")

</div>

> [@Wim\_Post](#):
>
> In fact with 3 AND-cards there are 6 different situations why the ALL-card is not true. And each situation may require a different THEN-card action.

It depends on situation. It’s not always the point to detect all different combinations. Sometimes you need to detect specific combination and spark to muiltiple different inputs. Both outputs, TRUE and FALSE make sense, whether with ANY or ALL, both are useful. Binary arithmetic is incomplete without NOT operator, which can be realised through inverted output.

---

<div class="post-metadata">

**Author:** ![Brane\_Brodnik](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/brane_brodnik/32/78912_2.png) [@Brane\_Brodnik](https://community.homey.app/u/Brane_Brodnik)\
**Post date:** [December 30, 2024, 4:50pm UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/28 "2024-12-30T16:50:20Z")

</div>

> [@Peter\_Kawa](#):
>
> True, but you don’t _need_ to use an ANY card.

Of course not, you can make the same logic without ANY, but with many more links in some situations. It’s about structuring in situations where ANY result is sent to multiple inputs.

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [December 30, 2024, 5:28pm UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/29 "2024-12-30T17:28:57Z")

</div>

![Scherm­afbeelding 2024-12-30 om 18.26.04](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/b/eb6cd9ae6c3b930b231b11f7a04f19a80d444c44.png)

Let say that all 3 AND-cards are false. That means non of the blue lines will reach the ANY-card.  
How is the ANY-card supposed to know that all AND-cards are false?

---

<div class="post-metadata">

**Author:** ![Wim\_Post](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/wim_post/32/56793_2.png) [@Wim\_Post](https://community.homey.app/u/Wim_Post)\
**Post date:** [December 30, 2024, 5:46pm UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/30 "2024-12-30T17:46:20Z")

</div>

![Scherm­afbeelding 2024-12-30 om 18.36.26](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/7/0/701e49a9db896a7fe6e6debbb99fe4a2ab10a8bf.png)

One off the 3 lights is on. So the ALL-card is false. Any yellow line can trigger an action needed if not all lights are off.

---

<div class="post-metadata">

**Author:** ![JohanP](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johanp/32/119002_2.png) [@JohanP](https://community.homey.app/u/JohanP)\
**Post date:** [December 31, 2024, 11:39am UTC](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102/31 "2024-12-31T11:39:08Z")

</div>

Since ANY not needed (if you connect all card it just works the same) is use it like this :

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/4/641d19f2de03003f43e08337b244a1dabfdb5f42.png)

Because without the ANY card you get way to much lines, and you end u playing micado 😉

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/f/bfbccb0c458707f10ac8c7141f0af1b83e2f9c44.png)

[Previous page](https://community.homey.app/t/difference-between-and-and-all-in-advanced-flows/70102.md?page=1)
