# Segment operators - In / Not In

**URL:** <https://forum.mautic.org/t/segment-operators-in-not-in/8577>\
**Category:** General Discussion\
**Created:** [May 25, 2017, 6:58am UTC](https://forum.mautic.org/t/segment-operators-in-not-in/8577 "2017-05-25T06:58:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RichMurph](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@RichMurph](https://forum.mautic.org/u/RichMurph)\
**Post date:** [May 25, 2017, 6:58am UTC](https://forum.mautic.org/t/segment-operators-in-not-in/8577/1 "2017-05-25T06:58:30Z")

</div>

I see there are no operators ‘In’ and ‘Not In’ when creating a segment, is it possible to add comma separated values for a single operator, for example ‘Status EQUALS 1,2,3’ this way we could reduce the number of filters required to create complex segments?  
  
  
  
A further example would be creating the following segment, I have fields for membership status and marketing preference, currently if I want to select 3 status’s (of a possible 6) and one preference (of a possible 2) I would need the following filters:  
  
  
  
Status EQUALS 1  
  
AND preference EQUALS Y  
  
OR Status EQUALS 7  
  
AND preference EQUALS Y  
  
OR Status EQUALS 8  
  
AND preference EQUALS Y  
  
  
  
It would be much simpler if I could write:  
  
  
  
Status EQUALS 1,7,8  
  
AND preference EQUALS Y  
  
  
  
Or alternatively if there was an IN / NOT IN operator:  
  
  
  
Status IN 1,7,8  
  
AND preference EQUALS Y  
  
  
  
Any guidance would be appreciated…

---

<div class="post-metadata">

**Author:** ![RichMurph](https://avatars.discourse-cdn.com/v4/letter/r/4491bb/32.png) [@RichMurph](https://forum.mautic.org/u/RichMurph)\
**Post date:** [May 25, 2017, 6:58am UTC](https://forum.mautic.org/t/segment-operators-in-not-in/8577/2 "2017-05-25T06:58:30Z")

</div>

I see there are no operators ‘In’ and ‘Not In’ when creating a segment, is it possible to add comma separated values for a single operator, for example ‘Status EQUALS 1,2,3’ this way we could reduce the number of filters required to create complex segments?

A further example would be creating the following segment, I have fields for membership status and marketing preference, currently if I want to select 3 status’s (of a possible 6) and one preference (of a possible 2) I would need the following filters:

Status EQUALS 1  
AND preference EQUALS Y  
OR Status EQUALS 7  
AND preference EQUALS Y  
OR Status EQUALS 8  
AND preference EQUALS Y

It would be much simpler if I could write:

Status EQUALS 1,7,8  
AND preference EQUALS Y

Or alternatively if there was an IN / NOT IN operator:

Status IN 1,7,8  
AND preference EQUALS Y

Any guidance would be appreciated…
