# Filter Segments Based On Empty Boolean

**URL:** <https://forum.mautic.org/t/filter-segments-based-on-empty-boolean/12480>\
**Category:** Product Support\
**Tags:** community\
**Created:** [January 29, 2020, 9:50pm UTC](https://forum.mautic.org/t/filter-segments-based-on-empty-boolean/12480 "2020-01-29T21:50:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![av1dlearner](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/av1dlearner/32/997_2.png) [@av1dlearner](https://forum.mautic.org/u/av1dlearner)\
**Post date:** [January 29, 2020, 9:50pm UTC](https://forum.mautic.org/t/filter-segments-based-on-empty-boolean/12480/1 "2020-01-29T21:50:49Z")

</div>

**Your software**  
My Mautic version is: 2.15.3  
My PHP version is: 7.1.33

**Your problem**  
My problem is:

Lets say I have a custom Boolean which says “Phone Customer” Yes/No  
i would like to filter a segment that should contain all customers that have Phone Customer = NO, or Phone Customer= EMPTY (meaning they have no value for that boolean)

I already found a solution if I want to filter only those with no value by making two conditions:  
Phone Customer does not equal YES  
and  
Phone Customer does not equal NO

However now I need it to include both “NO” and No value

---

<div class="post-metadata">

**Author:** ![pwned555](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/pwned555/32/3848_2.png) [@pwned555](https://forum.mautic.org/u/pwned555)\
**Post date:** [November 25, 2020, 5:29pm UTC](https://forum.mautic.org/t/filter-segments-based-on-empty-boolean/12480/2 "2020-11-25T17:29:42Z")

</div>

Setting your segment to Phone Customer does not equal YES should return both No and No Value (at least I did a test in Mautic 3.0 and it is returning both values)
