Operators

Operators are the logic functions used to compare attributes against values when building qualifying conditions. They determine how the system checks a specific data point. The available operators are based on the data type of the attribute you are evaluating.

1. Standard Comparison Operators

Applicable to Strings, Dates, and Numbers.

OperatorData TypeDescriptionExamples
EqualsString, Date, NumberChecks whether the attribute matches the value exactly.Example 1: Member Attributes > First Name > Equals > John
Example 2: Purchase attributes > Gross Amount > Equals > 100.50
Not EqualsString, Date, NumberChecks whether the attribute isn't equal to the specified value.Example 1: Member Attributes > Slab Name > Not Equals > Gold
Example 2: Store Attributes > Name > Not Equals > Main Street
Is NullString, Date, NumberChecks whether the field is empty (contains no data).Example 1: Member Attributes > Email > Is Null
Example 2: Purchase attributes > Notes > Is Null
Is Not NullString, Date, NumberChecks whether the field contains any value.Example 1: Member Attributes > Mobile > Is Not Null
Example 2: Card Attributes > Card Number > Is Not Null
Is One OfString, List of StringsMatches any single item in the list.Example 1: Member Attributes > Tier > Is One Of > Gold, Platinum
Example 2: Purchase attributes > Tender Code > Is One Of > CASH, VISA
Is None OfString, List of StringsMatches only if the value isn't in the list.Example 1: Member Attributes > Status > Is None Of > Blocked, Fraud
Example 2: Store Attributes > Code > Is None Of > Store_001
Previous ValueStringChecks what the value was before the change.Example 1: Member Update attributes > Mobile > Previous Value > 9999999999
Example 2: Member Update attributes > Email > Previous Value > [email protected]
Previous Custom Field ValueStringChecks the value of a specific custom field before it was changed.Example 1: Member Update attributes > Custom Field > Previous Custom Field Value > Standard
Example 2: Member Update attributes > Tier > Previous Custom Field Value > Silver
Current Custom Field ValueStringChecks the value of a specific custom field after it has changed.Example 1: Member Update attributes > Custom Field > Current Custom Field Value > Premium
Example 2: Member Update attributes > Status > Current Custom Field Value > Active
Current ValueStringChecks the value after the change.Example 1: Member Update attributes > Last Name > Current Value > Smith Example 2: Member Update attributes > Loyalty Type > Current Value > Loyal
ExistsString, List of StringsChecks whether the attribute key is in the data.Example 1: Member Attributes > External Id > Exists
Example 2: Purchase attributes > Custom Field > Exists
Not ExistsString, List of StringsChecks whether the attribute key is not included in the data.Example 1: Member Attributes > Partner ID > Not Exists
Example 2: Card Attributes > Legacy ID > Not Exists

2. Text and List Operators

Specific to String fields and List of Strings.

OperatorData TypeDescriptionExamples
ContainsString, List of StringsChecks whether the text includes a specific sequence of letters.Example 1: Member Attributes > Full Name > Contains > Smith
Example 2: Purchase attributes > Item Description > Contains > Organic
Starts WithList of StringsChecks whether the value begins with a specific prefix.Example 1: Purchase attributes > Item Code > Starts With > SKU
Example 2: Member Attributes > Mobile > Starts With > +1
Is EmptyStringChecks whether the field is empty (contains no data).Example 1: Member Attributes > Middle Name > Is Empty
Example 2: Purchase attributes > Tender Notes > Is Empty
MatchesString, List of StringsChecks whether the value matches a specific regular expression pattern.Example 1: Member Attributes > First Name > Matches > ^[A-Z]
Example 2: Card Attributes > Vehicle Number > Matches > [0-9]{4}
Matches Any OfList of StringsChecks whether at least one item in a list matches the criteria.Example 1: Purchase attributes > Item Code > Matches Any Of > Milk, Bread
Example 2: Purchase attributes > Tender Code > Matches Any Of > VISA, AMEX
Matches All OfList of StringsChecks whether every item in the list matches the criteria.Example 1: Purchase attributes > Item Code > Matches All Of > ItemA, ItemB
Example 2: Purchase attributes > Promotion Code > Matches All Of > SALE10, APP5
Not InList of StringsChecks whether the specific value isn't in the list.Example 1: Purchase attributes > Item Code > Not In > Restricted_01
Example 2: Store Attributes > Code > Not In > Online_Store
Is Valid DateStringChecks whether a text string is in a valid date format.Example 1: Member Attributes > Passport Expiry String > Is Valid Date
Example 2: Card Attributes > Activation String > Is Valid Date

3. Numerical Operators

Specific to Real numbers, Integers, and List of Numbers.

OperatorData TypeDescriptionExamples
Greater ThanNumber, List of NumbersChecks whether the value is greater than the specified value.Example 1: Member Attributes > Current Points > Greater Than > 1000
Example 2: Purchase attributes > Gross Amount > Greater Than > 50
Less ThanNumber, List of NumbersChecks whether the value is less than the specified value.Example 1: Member Attributes > Slab Number > Less Than > 3
Example 2: Member Attributes > Number of Visits > Less Than > 5
Greater Than Or EqualNumber, List of NumbersChecks whether the value is Checks whether the value is less than or equal to the specified value.Example 1: Member Attributes > Age > Greater Than Or Equal > 18
Example 2: Purchase attributes > Item Quantity > Greater Than Or Equal > 2
Less Than Or EqualNumber, List of NumbersChecks whether the value is less than or equal to the specified value.Example 1: Member Attributes > Days Since Visit > Less Than Or Equal > 30
Example 2: Purchase attributes > Discount > Less Than Or Equal > 20
Is BetweenNumber, List of NumbersChecks whether the value falls within a range (inclusive).Example 1: Member Attributes > Age > Is Between > 21, 35
Example 2: Purchase attributes > Run Time > Is Between > 60, 120
IntervalNumberChecks whether the number matches a specific interval.Example 1: Member Attributes > Number of Visits > Interval > 5
Example 2: Purchase attributes > Gross Amount > Interval > 100
YearNumberExtracts the year from a date for numeric comparison.Example 1: Purchase attributes > Date > Year > Equals > 2025
Example 2: Member Attributes > Birth Date > Year > Less Than > 2000
MonthNumberExtracts the month (1-12) from a date.Example 1: Purchase attributes > Date > Month > Equals > 12
Example 2: Member Attributes > Enrolment Date > Month > Is One Of > 6, 7, 8
DayNumberExtracts the day of the week or the numeric day.Example 1: Purchase attributes > Date > Day > Equals > 15
Example 2: Member Attributes > Join Date > Day > Is Not > 1

4. Date Operators

Specific to Date fields.

OperatorData TypeDescriptionExamples
IsDateChecks whether the date falls on a specific unit, for example, weekend).Example 1: Purchase attributes > Date > Is > Weekend
Example 2: Purchase attributes > Date > Is > Day
Is NotDateChecks whether the date doesn't fall on a specific unit.Example 1: Purchase attributes > Date > Is Not > Weekend
Example 2: Purchase attributes > Date > Is Not > Weekday
Is BeforeDateChecks whether the date is earlier.Example 1: Member Attributes > Join Date > Is Before > 2024-01-01
Example 2: Card Attributes > Expiry Date > Is Before > 2025-12-31
Is AfterDateChecks whether the date is later.Example 1: Purchase attributes > Date > Is After > 2024-01-01
Example 2: Member Attributes > Last Login > Is After > 2025-02-01
Is On Or BeforeDateChecks whether the date is on or before a specified date.Example 1: Purchase attributes > Date > Is On Or Before > 2024-12-31
Example 2: Member Attributes > Slab Expiry > Is On Or Before > 2025-06-30
Is On Or AfterDateChecks whether the date is on or after a specified date.Example 1: Purchase attributes > Date > Is On Or After > 2025-01-01
Example 2: Card Attributes > Start Date > Is On Or After > 2023-01-01
Is Time BetweenDateChecks whether the time is between the specified times.Example 1: Purchase attributes > Date > Is Time Between > 12:00, 14:00
Example 2: Purchase attributes > Date > Is Time Between > 06:00, 09:00
Is Hour BetweenDateChecks whether the hour is from 0 through 23.Example 1: Purchase attributes > Date > Is Hour Between > 12, 14
Example 2: Purchase attributes > Date > Is Hour Between > 17, 22
Is ValidDateChecks whether the date is a valid date object.Example 1: Member Attributes > Birth Date > Is Valid
Example 2: Card Attributes > Activation Date > Is Valid
Day Of MonthDateChecks whether the day of the month is from 1 through 31.Example 1: Purchase attributes > Date > Day Of Month > 1
Example 2: Member Attributes > Join Date > Day Of Month > 15
Days DiffDateCalculates the count of days between two dates.Example 1: Purchase attributes > Date > Days Diff > Member Attributes.Join Date
Example 2: Card Attributes > Expiry Date > Days Diff > Current Date
Date DiffDateCalculates the absolute difference between two dates.Example 1: Purchase attributes > Date > Date Diff > Member Attributes.Join Date Example 2: Redemption attributes > Date > Date Diff > Purchase attributes.Date
Minutes DiffDateCalculates the number of minutes between two dates.Example 1: Purchase attributes > Date > Minutes Diff > 30
Example 2: Purchase attributes > Show Time > Minutes Diff > 15
Is Before (TZ)DateChecks whether a date is earlier than a specified date in a specific time zone.Example 1: Purchase attributes > Date > Is Before With Timezone > Asia/Kolkata
Example 2: Member Attributes > Event Date > Is Before With Timezone > GMT

5. Partner Program Specific Operators

OperatorData TypeWhat it MeansExamples
Partner Program TypeString (Enum)Filters by the partner program type (for example, External or Supplementary.Example 1: Partner attributes > Partner Program Type > Equals > EXTERNAL
Example 2: Partner attributes > Partner Program Type > Is Not > SUPPLEMENTARY
Partner Tier NameStringMatches the specific tier level assigned by the partner.Example 1: Partner attributes > Partner Tier Name > Equals > Platinum
Example 2: Partner attributes > Partner Tier Name > Is One Of > Level 1, Level 2
Partner Program Update TypeString (Enum)Checks the reason for a tier change (Upgrade, Downgrade, or Renew).Example 1: Partner attributes > Update Type > Equals > UPGRADE
Example 2: Partner attributes > Update Type > Is None Of > DOWNGRADE

6. Event Attribute Operators

OperatorData TypeWhat it MeansExamples
Card StatusBooleanChecks whether the card associated with the event is in a specific state.Example 1: Event attributes > Card Status > Equals > Active
Example 2: Registration attributes > Card Status > Not Equals > Expired
Card Series NameBooleanChecks whether the card belongs to a specific named series.Example 1: Event attributes > Card Series Name > Contains > Elite
Example 2: Redemption attributes > Card Series Name > Is One Of > Default, Promo
Promotion Identifiers IncludesBooleanChecks whether the event is linked to specific internal promotion IDs.Example 1: Event attributes > Promotion Identifiers > Contains > SUMMER_24
Example 2: Purchase attributes > Promotion Identifiers > Exists