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.

OperatorDescription
ContainsChecks if the selected event property contains the specified value.
Does Not ContainChecks if the selected event property does not contain the specified value.
EqualChecks if the selected event property matches the specified value.
Not EqualChecks if the selected event property does not match the specified value.
InChecks if the selected event property is in the set of specified strings.
Not InChecks if the selected event property is not in the set of specified strings.
RegexMatches 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.

OperatorDescription
EqualChecks if the selected event property matches the specified value.
GreaterChecks if the selected event property is greater than the specified value.
Greater or EqualChecks if the selected event property is greater than or equal to the specified value.
InChecks if the selected event property is in the set of specified values.
LessChecks if the selected event property is less than the specified value.
Less or EqualChecks if the selected event property is less than or equal to the specified value.
Not EqualChecks if the selected event property does not match the specified value.
Not InChecks if the selected event property is not in the set of specified values.
SetChecks if the selected event property value is set.
Not SetChecks 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.

OperatorDescription
Date EqualChecks if the selected event property matches the specified date.
Date PostChecks if the selected event property is after the specified date.
Date PriorChecks 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.

OperatorDescription
Version EqualChecks if the version matches the specified value.
Version GreaterChecks if the version is greater than the specified value.
Version Greater or EqualChecks if the version is greater than or equal to the specified value.
Version LessChecks if the version is less than the specified value.
Version Less or EqualChecks if the version is less than or equal to the specified value.
Version Not EqualChecks 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 VersionsInvalid Versions
0.41
0.4.12.7.2.2
0.9.61.3.a4
1.0.41.3pl1

Refer to this document for a better understanding of Regular Expressions.