Operator Condition for Segment Creation
Explore operator conditions for creating client-side segments on the PX dashboard.
The operators below help define conditions for event payload properties or user attributes.
Operators for String Data Type
Use the following string operators to define conditions based on text-based event properties or user attributes. Refer to the table below to know the operators for the string data type.
Operator | Description |
---|---|
Contains | Checks if the selected event property contains the specified value. |
Does Not Contain | Checks if the selected event property does not contain the specified value. |
Equal | Checks if the selected event property matches the specified value. |
Not Equal | Checks if the selected event property does not match the specified value. |
In | Checks if the selected event property is in the set of specified strings. |
Not In | Checks if the selected event property is not in the set of specified strings. |
Regex | Matches the selected event property against a specified regex pattern. Learn more. |
Operators for Integer Data Type
The integer operators below allow you to create conditions based on numeric values for event properties or user attributes. Refer to the table below to know the operators for the integer data type.
Operator | Description |
---|---|
Equal | Checks if the selected event property matches the specified value. |
Greater | Checks if the selected event property is greater than the specified value. |
Greater or Equal | Checks if the selected event property is greater than or equal to the specified value. |
In | Checks if the selected event property is in the set of specified values. |
Less | Checks if the selected event property is less than the specified value. |
Less or Equal | Checks if the selected event property is less than or equal to the specified value. |
Not Equal | Checks if the selected event property does not match the specified value. |
Not In | Checks if the selected event property is not in the set of specified values. |
Set | Checks if the selected event property value is set. |
Not Set | Checks if the selected event property value is not set. |
Operators for Date Data Type
Date operators help you set conditions for specific dates or ranges in a standard format or epoch time. Refer to the table below to know the operators for the date data type.
Operator | Description |
---|---|
Date Equal | Checks if the selected event property matches the specified date. |
Date Post | Checks if the selected event property is after the specified date. |
Date Prior | Checks if the selected event property is before the specified date. |
Equal (Epoch) | Checks if the selected event property matches the specified date in epoch time format. |
Greater (Epoch) | Checks if the selected event property is greater than the specified date in epoch time format. |
Greater or Equal (Epoch) | Checks if the selected event property is greater than or equal to the specified date in epoch format. |
In (Epoch) | Checks if the selected event property is in the set of specified dates in epoch time format. |
Less (Epoch) | Checks if the selected event property is less than the specified date in epoch time format. |
Less or Equal (Epoch) | Checks if the selected event property is less than or equal to the specified date in epoch format. |
Not Equal (Epoch) | Checks if the selected event property does not match the specified date in epoch format. |
Not In (Epoch) | Checks if the selected event property is not in the set of specified dates in epoch time format. |
Special Operators for Versions
These version operators are designed to define conditions for version-based properties, such as app or SDK versions. Refer to the table below to know what different operators mean.
Operator | Description |
---|---|
Version Equal | Checks if the version matches the specified value. |
Version Greater | Checks if the version is greater than the specified value. |
Version Greater or Equal | Checks if the version is greater than or equal to the specified value. |
Version Less | Checks if the version is less than the specified value. |
Version Less or Equal | Checks if the version is less than or equal to the specified value. |
Version Not Equal | Checks if the version does not match the specified value. |
Valid and Invalid Version Numbers
Refer to the following table to ensure your version numbers are formatted correctly:
Valid Versions | Invalid Versions |
---|---|
0.4 | 1 |
0.4.1 | 2.7.2.2 |
0.9.6 | 1.3.a4 |
1.0.4 | 1.3pl1 |
Refer to this document for a better understanding of Regular Expressions.
Updated 1 day ago