# Rule conditions: when a rule applies

Source: https://docs.minmaxify.com/article/rule-conditions (updated 2026-11-26)

A rule's condition decides when its limits apply. You set it under **When** in the rule editor. This article explains each condition.

For the basics of rules, see [Rules: limits that apply only in some situations](https://docs.minmaxify.com/article/rules).

## Add a condition to a rule

Some starting points, for example **Cart quantity**, make a rule without a condition. To add one, click **Add a condition** below the limit. The limit moves under a **When**. The condition starts as **Customer Tag** with **has tag** and no tag. Change it to the condition that you want: a **Customer Tag** condition with an empty tag never applies.

## Condition types

Choose the kind of condition in **Condition type**.

| Condition type | The rule applies when | Options |
| --- | --- | --- |
| **Customer Tag** | The customer has, or does not have, a customer tag. | **has tag**, **doesn't have tag**, **has one of**, **doesn't have any of** |
| **Cart Contains** | At least one item in the cart matches the products that you choose. | A product filter |
| **Cart Doesn't Contain** | No item in the cart matches the products that you choose. | A product filter |
| **Cart Subtotal** | The cart amount compares with the amount that you enter. | **greater than**, **less than**, **equal to**, **not equal to**, **between** |
| **Purchase Date** | Today's date compares with the date that you choose. | **after**, **before**, **on**, **between** |
| **All Conditions** | Every condition in a list is true. | **are met**, **are not met** |
| **Any Condition** | At least one condition in a list is true. | **is met**, **is not met** |

## Customer Tag

- The customer must be logged in to their account on your store. A visitor who is not logged in has no tags. For such a visitor, **has tag** is not true, and **doesn't have tag** is true.
- Type the tag exactly as it is written in Shopify. Capital letters and spaces matter: `wholesale` and `Wholesale` are different tags.
- With **has one of** and **doesn't have any of**, type one tag on each line.

## Cart Contains and Cart Doesn't Contain

You choose the products with a product filter: by collection, product, product tag, vendor, product type, title, SKU, price and more. The filter is the same as for a product group. See [Rule limits: what a rule can limit](https://docs.minmaxify.com/article/rule-limits).

The quantity does not matter. One matching item in the cart is enough for **Cart Contains**.

## Cart Subtotal

- **greater than** and **less than** do not include the amount itself. With **greater than** 100, a cart of exactly 100 does not match.
- **between** means more than the first amount and less than the second amount.

## Purchase Date

Use this condition for a limit that applies only on some days, for example during a sale. The rule starts and stops on its own, and you do not need to publish again on those days.

- **after**: from the next day.
- **before**: until the day before.
- **on**: on that day only.
- **between**: from the first day to the last day. Both days are included.

## More than one condition

To combine conditions, choose **All Conditions** or **Any Condition** in **Condition type**, and add each condition with **Add condition**. The list starts empty: add the condition that you had before again.

- **All Conditions** with **are met**: every condition in the list must be true. Example: the customer has the tag "wholesale" AND the cart contains a product from the collection "Wine".
- **Any Condition** with **is met**: one true condition is enough. Example: the customer has the tag "wholesale" OR the tag "distributor".

The options **are not met** and **is not met** reverse a condition. Use them with one condition in the list, for example to say "the cart subtotal is NOT greater than 100".

## A condition inside a condition

With **Add nested When** you put a second condition inside the first one. The limits under the nested **When** apply only when both conditions are true. Example: when the customer has the tag "wholesale", the minimum is 12 items; and when the cart also contains a product from the collection "Samples", the maximum for that collection is 2.
