> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarlabs-ultimate-discounts/unified-discount-engine-v2/rules.md).

# 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.

<figure><img src="/files/9Eas8LN4vGPVcXAI55nA" 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.

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

1. Equal to
2. Less than
3. Greater than

\
And the \`Divisble by\` condition is also available for any property who's name ends with "count".
{% 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
* 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.
* Unique variant count → Unique variants in the user's cart matching the group rules.
