Audience Operators
Audience operators are used to match a user’s profile against a set of criteria.
Courier supports the following operators:
Equality & Inequality
EQ
Checks if a specified attribute is equal to a given value.
NEQ
Checks if a specified attribute is not equal to a given value.
String Comparison
STARTS_WITH
Checks if a specified attribute starts with a given value.
ENDS_WITH
Checks if a specified attribute ends with a given value.
INCLUDES
Checks if a specific attribute in the user’s profile includes any of the specified values.
OMIT
Checks if a specified attribute is not included in the user’s profile.
Numeric Comparison
GT
Checks if a specific numeric attribute in the user’s profile is greater than a specified value.
GTE
Checks if a specific numeric attribute in the user’s profile is greater than or equal to a specified value.
LT
Checks if a specific numeric attribute in the user’s profile is less than a specified value.
LTE
Checks if a specific numeric attribute in the user’s profile is less than or equal to a specified value.
Date Comparison
IS_BEFORE
Checks if a specified date attribute is before a given date. The date should be in ISO 8601 format.
IS_AFTER
Checks if a specified date attribute is after a given date. The date should be in ISO 8601 format.
Existence
EXISTS
Checks if a specific attribute exists in the user’s profile.
Special Operators
MEMBER_OF
Checks if the user is a member of the tenant specified in the path.
caution
All operators are case-sensitive.
Nested Operator Examples
Here are some examples demonstrating how to use nested operators for more complex audience targeting: