Skip to main content

Comparison operators

Use comparison operators to build simple conditions that check if a datapoint or attribute matches a given value.

The available operators are:

OperatorDescriptionExample
=Equal toCustomer email = "[email protected]"
!=Not equal toCustomer ID != "c1234567"
<Less thanTransaction amount < 9.99
<=Less than or equal toTransaction amount <= 39.99
>Greater thanEmail velocity (1 day) > 10
>=Greater than or equal toFRG score >= 70
=~Matches a POSIX regular expression pattern.Shipping address postal code =~ \UB[0-9]+\
!=~Does not match a POSIX regular expression pattern.Device version !=~ \v32.*\
inThe attribute value matches one or more of the given values.BIN country [in] DE, FR
not inThe attribute value does not match any of the given values.BIN country [not in] IT, UK
containsContains the value of the string provided.Customer email [contains] @example.com
not containsDoes not contain the value of the string provided.Customer email [not contains] @fraugster.com

The availability of comparison operators depends on the type of variable you select. Use the following compatibility table as guidance:

Operatorstringenumint/floatbooleandate/timestamp
=+++++
!=+++++
<++
<=++
>++
>=++
=~+
!=~+
in+
not in+
contains++
not contains++