Conditions
AND / OR logic
How to combine multiple conditions with AND and OR to express any matching logic.
When you have more than one condition on a rule, you decide how they combine: must all match (AND) or any match (OR).
The default: AND
By default, conditions you add to a rule are combined with AND. A variant has to match every condition to qualify.
Collection is "Summer 2026" AND Tag is "clearance"
This matches only variants that are both in the Summer 2026 collection and tagged clearance.
Switching to OR
To match if any of the conditions are true, switch the group's operator to OR.
Collection is "Summer 2026" OR Collection is "Spring 2026"
This matches variants in either collection.
Mixing AND and OR (groups)
Real merchandising logic often needs both. The condition builder supports nested groups:
(Collection is "Summer 2026" OR Collection is "Spring 2026")
AND
(Tag is "clearance" OR Inventory ≤ 5)
This reads as:
"Match if the variant is in Summer or Spring AND is either clearance-tagged or low-stock."
Each group has its own AND/OR toggle. Add a group with + Add group in the condition builder.
Examples
Simple AND — all must match
Collection is "Summer 2026" AND Sale status is "on sale" AND Inventory ≤ 10
Simple OR — any match
SKU starts with "TSHIRT-" OR SKU starts with "TANK-"
Mixed — sale items in target collections
(Collection is "Summer" OR Collection is "Spring") AND Sale status is "on sale"
Mixed — clearance OR low stock, in selected vendors
(Tag is "clearance" OR Inventory ≤ 5) AND Vendor is one of "Acme", "Brand X"
Tip: read your logic out loud
Before saving, read your conditions out loud as a sentence. If the sentence describes the items you actually want to discount, you're good. If it doesn't, the logic is wrong somewhere — almost always a missing or misplaced AND/OR.
Browse to verify
Always click Browse after building complex condition logic. The matched variants list is the ground truth. If you see variants you didn't expect (or don't see ones you did), the logic doesn't yet match your intent.