How Conditions Work: AND / OR Logic
Conditions control when a rule applies. Without conditions, a rule applies to every checkout. With conditions, it only applies when the checkout matches your criteria.
The Basics
When you set a rule’s validation trigger to On condition, you build one or more condition groups. Each group contains one or more conditions.
A single condition looks like:
Country → Equals to → United States
This means: “apply this rule when the customer’s country is United States.”
Combining Conditions with AND / OR
You can combine multiple conditions using AND or OR logic. A dropdown appears between each condition and between each group, letting you choose how they connect.
AND — All Must Be True
When two conditions are connected with AND, both must be true for the rule to trigger.
Country equals United States AND Order total is greater than 100
This rule triggers only when the customer is in the US and the order is over $100. If either condition is false, the rule does not apply.
OR — Any Can Be True
When two conditions are connected with OR, the rule triggers if either condition is true.
Country equals United States OR Country equals Canada
This rule triggers for US customers or Canadian customers.
Condition Groups
Groups let you create more complex logic by nesting conditions. Each group is visually separated with an alternating background color.
Common pattern — AND within groups, OR between groups:
Group 1: Country equals US AND Order total > 100
OR
Group 2: Customer tag equals VIP
This means: “Apply the rule if (the customer is in the US and the order is over $100) OR (the customer has the VIP tag).”
You choose the AND/OR connector between groups using the dropdown that appears between them.
Adding Conditions and Groups
- Click Add condition (within a group) to add another condition to that group.
- Click Add group to create a new group with its own conditions.
- Each group can have up to 5 conditions.
- Each rule can have up to 5 groups.
- Use Remove condition or Remove group to delete them.
How to Think About It
Start simple. Most rules need just 1-2 conditions:
| What You Want | Conditions |
|---|---|
| Apply to one country | Country → Equals to → [country] |
| Apply above a cart value | Order subtotal → Is greater than → [amount] |
| Apply to specific customers | Customer tag → Equals to → [tag] |
| Apply to a product type | Product type → Equals to → [type] |
| Combine country + cart value | Country → Equals to → [country] AND Order subtotal → Is greater than → [amount] |
Only add groups when you need OR logic between different sets of criteria.
Trigger Options
Different conditions offer different trigger options:
| Condition Type | Available Triggers |
|---|---|
| Text fields (email, name, address, SKU, etc.) | Equals to, Not equals to, Contains string, Not contains string, Starts with, Not starts with, Is empty, Is not empty |
| Number fields (order total, quantity, weight, etc.) | Equals to, Not equals to, Is less than, Is greater than |
| Selection fields (country, currency, province, language, market) | Equals to, Not equals to |
| Boolean fields (logged in, PO box, gift card, etc.) | No trigger needed — the condition is true or false on its own |
| Date / Time fields | Equals to, Not equals to, Is before, Is after, Is in between, Is not in between |
Some fields like Zip / Postal code support both text and number triggers, so you can match by pattern (“starts with 90”) or by numeric comparison.
Related
- “For At Least One Product” vs “For All Products” — important for product-based conditions
- All Available Conditions — Full Reference
- Which Conditions Work With Which Rule Types