Skip to main content

Condition Match Modes

Each rule can define how its conditions are evaluated together using the conditions_match_mode setting.

ALL Mode (AND — Default)

Every condition must evaluate to true for the rule to apply. If any single condition fails, the rule is skipped.

Example rule: "20% off when cart total > $100 AND user role is 'wholesale'"

  • Both conditions must be met
  • A guest with a $200 cart would NOT qualify

ANY Mode (OR)

At least one condition must evaluate to true for the rule to apply.

Example rule: "10% off when product category is 'Clothing' OR user segment is 'high_value'"

  • Only one condition needs to match
  • A high-value customer buying Electronics would still qualify

Practical Considerations

ModeUse When
ALLYou need strict targeting (e.g., specific product + specific user)
ANYYou want broad eligibility with multiple paths to qualify

Time conditions (date, days of month, weekdays, months, hours) are evaluated independently and always use ALL mode internally, separate from the rule's match mode.