Operators

You can use operators in the Rule Builder to further define audiences based on specific conditions. The main operators available are:

  • AND

  • OR.

"And" rules

When using the "And" operator, all conditions within a section must be true for the rule to apply. This also applies to both the "where" and "when" conditions within such a ruleset. By using "And" rules, you can create precise and specific criteria for your target audience.

Example

Condition 1: User is in the United States.
Condition 2: User has made a purchase in the last 30 days.

Result: The rule will apply only if both conditions are true.

"Or" rules

The "Or" operator allows you to separate multiple "And" rules by creating a ruleset. With it, any of the "And" rulesets need to be fulfilled for the overall Audience to apply. This provides flexibility in defining audiences with multiple possible criteria.

Example

Rule 1 (And Rule):
Condition 1: User is in the United States.
Condition 2: User has made a purchase in the past 30 days.

-(OR Rule)-
Rule 2 (And Rule):
Condition 1: User is in Canada.
Condition 2: User has made a purchase in the past 30 days.

Result: The Audience will apply to both US- and Canada-visitors who have made a purchase in the past 30 days.

Ninetailed: "And", "Or" operators