Required. The name of the field that is compared against for the condition. If 'eventName' is specified this condition will apply to the name of the event. Otherwise the condition will apply to a parameter with the specified name.
Required. The type of comparison to be applied to the value.
value
string
Required. The value being compared against for this condition. The runtime implementation may perform type coercion of this value to evaluate this condition based on the type of the parameter value.
negated
boolean
Whether or not the result of the comparison should be negated. For example, if negated is true, then 'equals' comparisons would function as 'not equals'.
ComparisonType
Comparison type for matching condition
Enums
COMPARISON_TYPE_UNSPECIFIED
Unknown
EQUALS
Equals, case sensitive
EQUALS_CASE_INSENSITIVE
Equals, case insensitive
CONTAINS
Contains, case sensitive
CONTAINS_CASE_INSENSITIVE
Contains, case insensitive
STARTS_WITH
Starts with, case sensitive
STARTS_WITH_CASE_INSENSITIVE
Starts with, case insensitive
ENDS_WITH
Ends with, case sensitive
ENDS_WITH_CASE_INSENSITIVE
Ends with, case insensitive
GREATER_THAN
Greater than
GREATER_THAN_OR_EQUAL
Greater than or equal
LESS_THAN
Less than
LESS_THAN_OR_EQUAL
Less than or equal
REGULAR_EXPRESSION
regular expression. Only supported for web streams.
REGULAR_EXPRESSION_CASE_INSENSITIVE
regular expression, case insensitive. Only supported for web streams.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-04-02 UTC."],[[["MatchingCondition defines criteria for when an Event Edit or Event Creation rule is applied, based on event properties."],["It uses a comparison between a specified event field and a given value, with options for case sensitivity and negation."],["Supported comparison types include equality, containment, starts/ends with, greater/less than, and regular expressions (web streams only)."],["The condition can be applied to the event name or any event parameter, enabling flexible rule creation."]]],["This describes a matching condition used in event rules, defined via a JSON object with `field`, `comparisonType`, `value`, and `negated`. The `field` specifies the parameter or 'eventName' for comparison. The `comparisonType` defines the comparison method, such as `EQUALS`, `CONTAINS`, or `GREATER_THAN`. The `value` is the comparison target, and `negated` inverts the comparison result. Available `comparisonType` options also include case-insensitive variants and regular expression matching.\n"]]