# More than three OR clauses

**URL:** <https://community.homey.app/t/more-than-three-or-clauses/63312>\
**Category:** Flows\
**Created:** [May 5, 2022, 12:56pm UTC](https://community.homey.app/t/more-than-three-or-clauses/63312 "2022-05-05T12:56:42Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [May 5, 2022, 12:56pm UTC](https://community.homey.app/t/more-than-three-or-clauses/63312/1 "2022-05-05T12:56:42Z")

</div>

Is it possible to have more than 3 OR clauses in a flow? I have this flow I need to activate on set dates, and the easiest option for me is to do it once per year. That means I’ll need up to 12 OR clauses, or at least 6. Is this possible in some way? Or is it possible to add an array of dates somehow?

Thanks.

---

<div class="post-metadata">

**Author:** ![Henrik\_Johnsson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henrik_johnsson/32/13707_2.png) [@Henrik\_Johnsson](https://community.homey.app/u/Henrik_Johnsson)\
**Post date:** [May 5, 2022, 1:17pm UTC](https://community.homey.app/t/more-than-three-or-clauses/63312/2 "2022-05-05T13:17:42Z")

</div>

Seems a bit clumsy to define the dates in the code. Perhaps the iCalCalendar app would be a better solution?

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [May 5, 2022, 1:31pm UTC](https://community.homey.app/t/more-than-three-or-clauses/63312/3 "2022-05-05T13:31:49Z")

</div>

Or if you really want to do it in flows, think the other way around:  
[IF] trigger

[AND] date isn’t \*\*\*\*  
[AND] date isn’t \*\*\*\*  
[AND] etc…

[THEN] do what you normally would do, not on those dates (I believe it is optional to have cards in the THEN)  
[ELSE] do what you want to do on those dates

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [May 5, 2022, 1:38pm UTC](https://community.homey.app/t/more-than-three-or-clauses/63312/4 "2022-05-05T13:38:00Z")

</div>

Thanks. Will look into it if there’s no way to do it directly, but the last time I checked out that app I couldn’t get it working…

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [May 5, 2022, 1:38pm UTC](https://community.homey.app/t/more-than-three-or-clauses/63312/5 "2022-05-05T13:38:34Z")

</div>

That’s actually a decent way, if I use the “the date is between…” card. Hmmm…Thanks 😃

---

<div class="post-metadata">

**Author:** ![Tiwas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tiwas/32/10066_2.png) [@Tiwas](https://community.homey.app/u/Tiwas)\
**Post date:** [May 5, 2022, 2:51pm UTC](https://community.homey.app/t/more-than-three-or-clauses/63312/6 "2022-05-05T14:51:54Z")

</div>

Do you have experience with using logic operators to compare the title? I think I got the ical app working, but is there a way to do a case insensitive contains operation on the title? Or is the problem that “contains” from the logic group doesn’t trigger if there are 0 characters before the string it should contain?

---

<div class="post-metadata">

**Author:** ![Nitramevo](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/nitramevo/32/17475_2.png) [@Nitramevo](https://community.homey.app/u/Nitramevo)\
**Post date:** [May 6, 2022, 5:55pm UTC](https://community.homey.app/t/more-than-three-or-clauses/63312/7 "2022-05-06T17:55:32Z")

</div>

This app can do what you want:

> **[Advanced Scheduler](https://homey.app/da-dk/app/com.fp.advanced-scheduler/Advanced-Scheduler/)**
>
> Easily schedule anything from simple to complex solar or time based events.
