# Rules

In the rules section - you can set up conditions that determine when the discount should be applied to the group specified in the target section of the discount config.&#x20;

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2FLYTbK0jyK5NkBhWEycE0%2Fimage.png?alt=media&#x26;token=e99c9f7d-408b-4579-b632-8cdb88baf529" alt=""><figcaption></figcaption></figure>

All the groups you've created in the groups section are available to select in this section, with the following variables present for each, on which you can set your conditions.&#x20;

{% hint style="info" %}
You can use the following conditions for all of the properties listed below

1. Equal to&#x20;
2. Less than
3. Greater than

\
And the \`Divisble by\` condition is also available for any property who's name ends with "count".&#x20;
{% endhint %}

* Total cart amount → Cart amount for the group, inclusive of discounts
* Subtotal cart amount → Cart amount for the group, exclusive of discounts
* Line count → Count of line items&#x20;
* Quantity sum → Total sum of quantity of items matching cart group rules.
* Unique product count → Unique products in the user's cart matching the group rules.&#x20;
* Unique variant count → Unique variants in the user's cart matching the group rules.&#x20;
