# Can someone explain how the Segment filtering order works

**URL:** https://forum.mautic.org/t/can-someone-explain-how-the-segment-filtering-order-works/14090
**Category:** Product Support
**Created:** [April 28, 2020, 4:54pm UTC](https://forum.mautic.org/t/can-someone-explain-how-the-segment-filtering-order-works/14090 "2020-04-28T16:54:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![jstawski](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/jstawski/32/2298_2.png) [@jstawski](https://forum.mautic.org/u/jstawski)
#### Post date: [April 28, 2020, 4:54pm UTC](https://forum.mautic.org/t/can-someone-explain-how-the-segment-filtering-order-works/14090/1 "2020-04-28T16:54:43Z")

</div>

**Your software**  
My Mautic version is: 2.16.2  
My PHP version is: 7.2.30

**Your problem**  
My problem is: we are having a hard time understanding the Segment Filtering UI. We can’t find documentation on the topic anywhere. Given the image below:

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

What is the final filter?  
`(Registration Source in (..., ...) and Last Login Date < '2020-01-02') or (Registration Source is empty)`

or  
`(Registration Source in (..., ...) or Registration Source is empty) and Last Login Date < '2020-01-02'`

By the way, we are trying to accomplish the second option.

Can you point us to documentation or blog post on how this works?

These errors are showing in the log: N/A

Steps I have tried to fix the problem: N/A
