# "if any" function

**URL:** <https://community.homey.app/t/if-any-function/29389>\
**Category:** Ideas & Suggestions\
**Created:** [May 5, 2020, 9:37am UTC](https://community.homey.app/t/if-any-function/29389 "2020-05-05T09:37:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mlynnerup](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mlynnerup/32/12404_2.png) [@Mlynnerup](https://community.homey.app/u/Mlynnerup)\
**Post date:** [May 5, 2020, 9:37am UTC](https://community.homey.app/t/if-any-function/29389/1 "2020-05-05T09:37:28Z")

</div>

To be honest I don’t understand that no-one else has requested this before, so sorry if this is a double post.

**One of the tings I really miss when creating flows is the ability to add several cards to the “and…” section. Sort of like the “if all” or “if any” commands used in programming.**

_For example I would like to say “if any of the following Sonos speakers are playing do the following…”_

So maybe you would you should able to add different cards in the “and…” section and then select if you want “all” or “any” to apply to the cards. Does that make sense?

It could really save me from having to make a lot of complicated flows and interdependencies.

Thanks

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [May 5, 2020, 9:58am UTC](https://community.homey.app/t/if-any-function/29389/2 "2020-05-05T09:58:05Z")

</div>

You can add several cards to the AND column, when you have added 2 cards, then both must be true to goto th THEN column, this is what you call “if all”.  
If you pull down the second card in the AND column, there will apear an “or” line between the two cards, this means your “if any” function is created. Hope this is what you wanted.

---

<div class="post-metadata">

**Author:** ![Mlynnerup](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mlynnerup/32/12404_2.png) [@Mlynnerup](https://community.homey.app/u/Mlynnerup)\
**Post date:** [May 5, 2020, 10:29am UTC](https://community.homey.app/t/if-any-function/29389/3 "2020-05-05T10:29:27Z")

</div>

That is exactly what I wanted!

I thought I had already tried that but of course it works now. Thanks a lot!
