# Add Negative Condition to Segments Condition

**URL:** https://forum.mautic.org/t/add-negative-condition-to-segments-condition/22331
**Category:** Ideas and Feature Requests
**Created:** [January 13, 2022, 9:01pm UTC](https://forum.mautic.org/t/add-negative-condition-to-segments-condition/22331 "2022-01-13T21:01:47Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ricksimnett](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricksimnett/32/1578_2.png) [@ricksimnett](https://forum.mautic.org/u/ricksimnett)
#### Post date: [January 13, 2022, 9:01pm UTC](https://forum.mautic.org/t/add-negative-condition-to-segments-condition/22331/1 "2022-01-13T21:01:47Z")

</div>

My idea is: to allow users to allow negative segments. For example, contact is in prospects segment, but not in segment1, segment2, segment3.

I think these groups of people would benefit from this idea: all users that are using segment conditions to execute actions.

Why I think they would benefit from this idea: I have several use cases that would benefit from this feature specificaly for drip campaigns and prospecting.

Any code or resources to support this idea:

Are you willing to work on this idea?:Sure.

What skills and resources do you need to explore this further? A brief run down of how the campaign builder works in relation to bundles.

---

<div class="post-metadata">

### Author: ![Madlen](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/madlen/32/15300_2.png) [@Madlen](https://forum.mautic.org/u/Madlen)
#### Post date: [January 14, 2022, 7:33am UTC](https://forum.mautic.org/t/add-negative-condition-to-segments-condition/22331/2 "2022-01-14T07:33:07Z")

</div>

Hi @ricksimnett, I think what you are asking for is already possible in Mautic 4. Just use the including/excluding operator.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/b/bcab70503544b434518e5cfe8d5267f2247053b3.png)

---

<div class="post-metadata">

### Author: ![alexhammer](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexhammer/32/14525_2.png) [@alexhammer](https://forum.mautic.org/u/alexhammer)
#### Post date: [January 14, 2022, 12:35pm UTC](https://forum.mautic.org/t/add-negative-condition-to-segments-condition/22331/3 "2022-01-14T12:35:05Z")

</div>

yes. this already exists. 🙂  
I use this a lot

---

<div class="post-metadata">

### Author: ![ricksimnett](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/ricksimnett/32/1578_2.png) [@ricksimnett](https://forum.mautic.org/u/ricksimnett)
#### Post date: [January 14, 2022, 1:05pm UTC](https://forum.mautic.org/t/add-negative-condition-to-segments-condition/22331/4 "2022-01-14T13:05:36Z")

</div>

Hey Guys,  
Sorry I wasnt more clear. I didnt mean to be able to exclude users based on segment filters.

What I meant was in a campaign - as a conditional - we have the condition Contact Segments.

The segments specified there only evaluate to true if the contact is in the defined segments. My request is to add a negative operator there so users (including myself) can have a condition like contact IN [segment1, segment2, segment3] but not IN [segment4, segment5, segment6].
