# Setting up Filter And / Or conditions

**URL:** <https://community.make.com/t/setting-up-filter-and-or-conditions/48896>\
**Category:** Questions\
**Tags:** filters\
**Created:** [August 1, 2024, 3:39am UTC](https://community.make.com/t/setting-up-filter-and-or-conditions/48896 "2024-08-01T03:39:35Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmriNyx](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/omrinyx/32/55914_2.png) [@OmriNyx](https://community.make.com/u/OmriNyx)\
**Post date:** [August 1, 2024, 3:39am UTC](https://community.make.com/t/setting-up-filter-and-or-conditions/48896/1 "2024-08-01T03:39:35Z")

</div>

Hey guys,

I’m stuck on a simple filter for my scenario. Basically I would like to set the filter to be If A AND B AND (C or D). So A and B are a must and need to be either C or D to continue in the scenario.

I have a feeling that the below Filter Setup is not correct, it looks like A AND B OR C OR D - so im not sure if its equivalent to A AND B AND (C OR D) 😆

Any tips of how to set this filter? IF it is correct then I understand Make’s UI (to some extent) 🤓

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/7/f/7f94dc69edf0451c0e3dad39ba3812ef6cb0bbf7.png)

---

<div class="post-metadata">

**Author:** ![samliew](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/samliew/32/13327_2.png) [@samliew](https://community.make.com/u/samliew)\
**Post date:** [August 1, 2024, 4:56am UTC](https://community.make.com/t/setting-up-filter-and-or-conditions/48896/2 "2024-08-01T04:56:12Z")

</div>

## Your filter has to be set this way:

> A & B & C
> 
> OR
> 
> A & B & D

## Explanation

In Make, the OR predicate (rule) splits the conditions into different condition “groups”.

To achieve what you are trying to do, you need to group the “must-haves” (A & B), and repeat them for each of the “or”-items.

You have two items in the “or” list (C or D), so you need two condition groups.

## Alternative Solution

You can also combine C & D into a single condition using the boolean operator.

> total\_bundles = null **OR** record\_active = 1
> 
> **Boolean operators: Equal to**
> 
> {{true}}

In this way, you can simply just do A & B & X

Hope this helps! Let me know if there are any further questions or issues.

You can also join us in the [Make Fans](https://samliew.com/make-discord-invite) Discord server to chat with other makers!

---

<div class="post-metadata">

**Author:** ![ManishMandot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/manishmandot/32/25887_2.png) [@ManishMandot](https://community.make.com/u/ManishMandot)\
**Post date:** [August 1, 2024, 5:03am UTC](https://community.make.com/t/setting-up-filter-and-or-conditions/48896/3 "2024-08-01T05:03:43Z")

</div>

Hey @OmriNyx

This will work with your scenario

 ![image_2024_08_01T05_01_59_786Z-1](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/e/b/ebbf76b8aa9dca7120f6041902a39f7bf771249f.png)

---

<div class="post-metadata">

**Author:** ![OmriNyx](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/omrinyx/32/55914_2.png) [@OmriNyx](https://community.make.com/u/OmriNyx)\
**Post date:** [August 1, 2024, 5:24am UTC](https://community.make.com/t/setting-up-filter-and-or-conditions/48896/4 "2024-08-01T05:24:41Z")

</div>

Excellent, thank you for both solutions @samliew💯 Excatly what I needed 💡

---

<div class="post-metadata">

**Author:** ![OmriNyx](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/omrinyx/32/55914_2.png) [@OmriNyx](https://community.make.com/u/OmriNyx)\
**Post date:** [August 1, 2024, 5:25am UTC](https://community.make.com/t/setting-up-filter-and-or-conditions/48896/5 "2024-08-01T05:25:20Z")

</div>

@ManishMandot Many thanks ! Similar to what Sam said. Much apprecaited 💯

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [August 15, 2024, 5:34am UTC](https://community.make.com/t/setting-up-filter-and-or-conditions/48896/6 "2024-08-15T05:34:08Z")

</div>


