Skip to main content

Template Comparators

The following values are acceptable for "comparator" field in rules in the Retraced rules engine:

ComparatorDesscription
eqMatches when the value is equal to the event object data at path. This compares values only and doesn't compare types.
isThe same as eq but it also compares types of objects.
neqMatches when the value is not equal to the event object data at path. This compares values only and doesn't compare types. This is the inverse of eq.
notThe same as neq but it also compares types of objects. This is the inverse of is.
ltMatches when the value is less than the event object data at path.
lteMatches when the value is less than or equal to the event object data at path.
gtMatches when the value is greater than the event object data at path.
gteMatches when the value is greater than or equal to the event object data at path.
existsMatches when the value key exists and is not null on the event object data.
nexistsMatches when the value key does not exists or is null on the event object data.
containsMatches when the event object data at path contains value.
ncontainsMatches when the event object data at path does not contain value.
matchesThis rule is a raw regex rule. When the value is interpreted as a regular expression and applied to the event object data at path, returns the regex match value.