# Can I use an OR operation as part of a \_filter parameter?

**URL:** <https://community.postman.com/t/can-i-use-an-or-operation-as-part-of-a-filter-parameter/64635>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [July 26, 2024, 5:59pm UTC](https://community.postman.com/t/can-i-use-an-or-operation-as-part-of-a-filter-parameter/64635 "2024-07-26T17:59:23Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![chad.seichter](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chad.seichter](https://community.postman.com/u/chad.seichter)\
**Post date:** [July 26, 2024, 5:59pm UTC](https://community.postman.com/t/can-i-use-an-or-operation-as-part-of-a-filter-parameter/64635/1 "2024-07-26T17:59:23Z")

</div>

I’m trying to create a GET API call and need to check if a specific value is part of any of a subset of fields.

For example, in my data, I have 4 different mailing address fields (field1, field2, field3 and field4). I want my response list to be filtered to include if my value is included in any of the 4 fields.

So basically, I want to get a response if (field1=value OR field2=value OR field3=value OR field4=value.

I can get a response if I just use 1 condition or also if I use an AND (example \_filter=field1::Boston||field2::Boston) but can’t figure out syntax for an OR condition. Any ideas? Thanks.

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 26, 2024, 6:30pm UTC](https://community.postman.com/t/can-i-use-an-or-operation-as-part-of-a-filter-parameter/64635/2 "2024-07-26T18:30:10Z")

</div>

Hey @chad.seichter 👋🏻

Welcome to the Postman Community :postman:

Would you be able to provide a visual example of where you have been using this in the platform please?

---

<div class="post-metadata">

**Author:** ![chad.seichter](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@chad.seichter](https://community.postman.com/u/chad.seichter)\
**Post date:** [July 26, 2024, 6:41pm UTC](https://community.postman.com/t/can-i-use-an-or-operation-as-part-of-a-filter-parameter/64635/3 "2024-07-26T18:41:51Z")

</div>

![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/f/4f03e5fb9f499a35e0ab120fc51a7aac6ff12dd6.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [July 26, 2024, 6:50pm UTC](https://community.postman.com/t/can-i-use-an-or-operation-as-part-of-a-filter-parameter/64635/4 "2024-07-26T18:50:06Z")

</div>

As that’s a query param for that API, it’s usage and functionality is determined by how it’s been implemented by the provider.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [August 25, 2024, 6:50pm UTC](https://community.postman.com/t/can-i-use-an-or-operation-as-part-of-a-filter-parameter/64635/5 "2024-08-25T18:50:17Z")

</div>

Closed on August 25, 2024, 6:50pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
