# Using Filters as "OR" instead of "AND"

**URL:** <https://forum.finsweet.com/t/using-filters-as-or-instead-of-and/2336>\
**Category:** General\
**Created:** [January 7, 2024, 2:41pm UTC](https://forum.finsweet.com/t/using-filters-as-or-instead-of-and/2336 "2024-01-07T14:41:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pablo.faust](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/pablo.faust/32/1745_2.png) [@pablo.faust](https://forum.finsweet.com/u/pablo.faust)\
**Post date:** [January 7, 2024, 2:41pm UTC](https://forum.finsweet.com/t/using-filters-as-or-instead-of-and/2336/1 "2024-01-07T14:41:48Z")

</div>

Hi,

I reckon that Filters use an “AND” logic by default: it goes adding up filters while you click on them, and you need to click twice on a filter to hide the corresponding items.

Just to be perfectly clear, here’s an example: if you click on A, it will only show the items corresponding to A. Then, if you click on B, it will show the items corresponding to A AND B. If you want to display only those corresponding to B, you have to click on A again.

Is it possible to have Filters use an “OR” logic instead?

You’d click on A to show the items corresponding to A, and click on B to have ONLY the items corresponding to B.

I’m sure there’s a trick that I’m missing here to enable this behaviour.

I would appreciate your help on this!  
Thanks

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [January 7, 2024, 5:16pm UTC](https://forum.finsweet.com/t/using-filters-as-or-instead-of-and/2336/2 "2024-01-07T17:16:37Z")

</div>

Hey @pablo.faust! The simplest way to do this would be using radio buttons instead of checkboxes as radios only allow for one selection per radio button group.

This way the page will initially load all items in the list, unless you set the attribute `checked = checked` to one of the radios, selecting radio A will only show items with A as a category, and selecting radio B will uncheck Radio A and show only items with B as a category.

---

<div class="post-metadata">

**Author:** ![pablo.faust](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/pablo.faust/32/1745_2.png) [@pablo.faust](https://forum.finsweet.com/u/pablo.faust)\
**Post date:** [January 8, 2024, 11:34am UTC](https://forum.finsweet.com/t/using-filters-as-or-instead-of-and/2336/3 "2024-01-08T11:34:23Z")

</div>

I knew that it was something obvious! Thanks Luis!
