> For the complete documentation index, see [llms.txt](https://docs.globo.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.globo.io/filters/filter-options/use-and-filtering-condition-in-same-filter-option.md).

# Use AND filtering condition in the same filter option

When a shopper selects more than one value in the same filter option, the app matches products using an OR condition by default.

## What this does

By default, selecting more than one value within the same filter option uses an **OR condition** — the app widens the result to match any of the selected values. Switching a specific option to an **AND condition** narrows it instead, so only products matching every selected value make it through.

Under a filter option's **Edit filter option > Advanced settings > Logic**:

* **OR condition** (default) — "Displays products that match any of the selected values, allowing for a wider selection." Example: selecting "Cotton" and "Wool" under Material shows products made of cotton **or** wool.
* **AND condition** — "Only the products that have all selected values matched are displayed in the filtered result." Example: selecting "Waterproof" and "Breathable" under Features shows only products that are **both**.

AND matching is most useful for options built from tags or multi-value metafields where products can carry several attributes at once.

## Steps

1. Open the filter option — see [Configure filter options](/filters/filter-options/configure-filter-options.md).
2. Scroll to **Advanced settings > Logic**.
3. Choose **AND condition**.
4. Click **Save** in the bar at the top of the page.

![Logic setting — OR condition / AND condition](https://2009335375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FKmtdB4I84W3J8hc91H4S%2Fuploads%2Fgit-blob-a5559df8d90d83fe17b57b51446a81c4b8a3b1d3%2Fedit-filter-option-logic.png?alt=media)

This setting applies per filter option — other options keep using OR matching unless you change them too.

## Related pages

* [Configure filter options](/filters/filter-options/configure-filter-options.md)
* [Manage filter option values](/filters/filter-options/configure-filter-options/manage-filter-option-values.md)
