Skip to content
Last updated

Full list of allowed operators

OperatorMeaningData types supportedExample
=Is / Is equal toallgender="male")
!=Does not equalInteger, decimal, date(age!=32)
< , <=Is less than, Is less than or equal toInteger, decimal(age<32)
>, >=Is greater than, is greater than or equal toInteger, decimal(age>32)
IsBetweenNumbersIs between the selected numbersInteger, decimal(IsBetweenNumbers(number_of_orders,1,5))
IsProvidedIs providedall(IsProvided(address))
<>Is notstring(country<>"France")
StartsWithStarts withstring(StartsWith(country,"fr"))
EndsWithEnds withstring(EndsWith(promo_code,"DEC"))
ContainsContainsstring(Contains(address,"London"))
ToDateUsed to specify timestamps for expressionsdate"(property<ToDate(1556658000))"
DateTimeNow()Used to specify the current timestampdate(FormatDateTime("yyyy-mm-dd",anniversary)=FormatDateTime("yyyy-mm-dd",DateTimeNow()))
FormatDateTimeUsed to specify the format of the timestampdate(FormatDateTime("yyyy-mm-dd",birthday)=FormatDateTime("yyyy-mm-dd",DateTimeNow()))
BetweenIs between the selected timestampsdate(Between(last_purchase,"2019-05-01T09:00:00.000Z","2019-05-02T09:00:00.000Z"))
IsInNextDaysIs in the next X daysdate(IsInNextDays(birthday,1))
IsInPreviousDaysIs in the previous X daysdate(IsInPreviousDays(last_purchase,1))
FormatDateTimeTZUsed to specify timestamp with timezonedate(FormatDateTimeTZ("mm-dd",anniversary,"+03:00")="01-01")
hasopenedsinceContact has generated an open event within the last X daysN/A(hasopenedsince(1))
hasclickedsinceContact has generated a click event within the last X daysN/A(hasclickedsince(1))
SubscribedSince(list_id, nbdays)Contact subscribed to the list before the number of days provided.IntegerSubscribedSince(12345, 30)
hasopenedmarketingsince(nbdays)Contact has opened a campaign in the last number of days provided.Integerhasopenedmarketingsince(30)
sopenedcampaign(id_campaign)Contact has opened the campaign provided.Integerhasopenedcampaign(12345)
hasclickedmarketingsince(nbdays)Contact has clicked in a campaign in the last number of days provided.Integerhasclickedmarketingsince(30)
hasclickedcampaign(id_campaign)Contact has clicked in the campaign provided.Integerhasclickedcampaign(12345)