Arguments
Arguments
The following table provides details of each of the operations supported by the op argument used in the definition of segments.
Operation | Description | Examples |
---|---|---|
eq (equals) |
The values match exactly. This is done using a JavaScript type sensitive comparison (e.g. “42” is not equal to 42) |
|
neq (does not equal) |
The values do not exactly match |
|
lt (less than) |
The numeric value in the event is less than the value in the condition |
|
lte (less than or equal) |
The numeric value in the event is less than or equal to the value in the condition |
|
gt (greater than) |
The numeric value in the event is greater than the value in the condition |
|
gte (greater than or equal) |
The numeric value in the event is greater than or equal to the value in the condition |
|
in |
True if the value in the event is contained within the value of the condition |
|
nin |
True if the value in the event is not contained within the value of the condition |
|
contains |
True if the value in the event contains the value in the condition |
|
ncontains |
True if the value in the event does not contain the value in the condition |
|
containsany |
The value of the condition is a list, and the condition will be true if any of the items of the list are contained in the event value |
|
ncontainsany |
The value of the condition is a list, and the condition will be true if none of the items of the list are contained in the event value |
|
regex |
Matches the regex entered |
|
nregex |
Does not match the regex entered |
|
|
For regex and nregex, do not include the |