--- title: FilterOperatorType - Storefront API description: | Specifies the logical operator used for filtering multiple values within a filter. Example: Given the filter is 'color' and values are 'red' and 'blue': - If 'AND' is used, it will filter items that are both red and blue. - If 'OR' is used, it will filter items that are either red or blue or both. api_version: unstable api_name: storefront source_url: html: https://shopify.dev/docs/api/storefront/unstable/enums/filteroperatortype md: https://shopify.dev/docs/api/storefront/unstable/enums/filteroperatortype.md --- # Filter​Operator​Type enum Specifies the logical operator used for filtering multiple values within a filter. Example: Given the filter is 'color' and values are 'red' and 'blue': * If 'AND' is used, it will filter items that are both red and blue. * If 'OR' is used, it will filter items that are either red or blue or both. ## Valid values * AND The logical operator AND. * OR The logical operator OR. *** ## Fields * [Filter.operator](https://shopify.dev/docs/api/storefront/unstable/objects/Filter#field-Filter.fields.operator) OBJECT A filter option available on collection and search results pages. Each filter includes a type, display label, and selectable values that customers can use to narrow down products. The [`FilterValue`](https://shopify.dev/docs/api/storefront/current/objects/FilterValue) objects contain an [`input`](https://shopify.dev/docs/api/storefront/current/objects/FilterValue#field-FilterValue.fields.input) field that you can combine to [build dynamic filtering queries](https://shopify.dev/docs/storefronts/headless/building-with-the-storefront-api/products-collections/filter-products). Merchants [configure available filters](https://help.shopify.com/manual/online-store/search-and-discovery/filters) using the Shopify Search & Discovery app. *** ## Map ### Fields with this enum * [Filter.operator](https://shopify.dev/docs/api/storefront/unstable/objects/Filter#field-Filter.fields.operator)