Supported operators for segmentation
Learn more about the operators available in the segment rule builder and the attribute data types each operator supports.
Operators in the segment rule builder define filter conditions for a segment. The operators available in the Operator dropdown depend on the data type of the attribute you select.
Supported operators
The following table describes each operator and the data types it supports.
| Operator | Description | String | Numeric | Date |
|---|---|---|---|---|
| Equals | Includes profiles where the attribute value exactly matches the specified value. | ✅ | ✅ | ✅ |
| Not | Includes profiles where the attribute value does not match the specified value. | ✅ | ✅ | ✅ |
| Exists | Includes profiles where the attribute has a value. | ✅ | ✅ | ✅ |
| Missing value | Includes profiles where the attribute has no value. | ✅ | ✅ | ✅ |
| Contains | Includes profiles where the attribute value contains the specified string. | ✅ | — | — |
| Not contains | Includes profiles where the attribute value does not contain the specified string. | ✅ | — | — |
| In range | Includes profiles where the attribute value falls within the specified range (inclusive). | — | ✅ | ✅ |
| Not in range | Includes profiles where the attribute value falls outside the specified range. | — | ✅ | ✅ |
| Less than | Includes profiles where the attribute value is less than the specified value. | — | ✅ | ✅ |
| Less than or equal | Includes profiles where the attribute value is less than or equal to the specified value. | — | ✅ | ✅ |
| Greater than | Includes profiles where the attribute value is greater than the specified value. | — | ✅ | ✅ |
| Greater than or equal | Includes profiles where the attribute value is greater than or equal to the specified value. | — | ✅ | ✅ |