> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://regiostech.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Logic Builder: Discount Conditions

Our advanced logic builder offers a number of conditions you can chain together to get very precise about who will receive which discounts.

Here's a breakdown of them all:

[![](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_1g9otno.png)](https://www.loom.com/share/1f08e5e278b74c15a8e5582dee89eb60)

Click the thumbnail above to watch a video of our founder walking through the different conditions available.

## Include/exclude customers
!["Screenshot of an include/exclude customers condition"](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_1hognl1.png)

You can include or exclude customers from receiving a discount, using various [customer eligibility options](/en/article/customer-eligibility-options-in-regios-automatic-discounts-yvbhyh/).

## Include/exclude products
![Screenshot of an "include/exclude products condition"](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_2blrfm.png)

You can include or exclude products from receiving a discount, using various [product eligibility options](/en/article/product-eligibility-options-in-regios-automatic-discounts-35adhk/).

## Check if specific products are in the cart
![Screenshot of a "Check if specific products are in the cart" condition](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_1gqm7mo.png)

You can use this condition to only apply a discount to some items when specific other items are present in the cart.

You can use this for [bundle offers](/en/article/how-to-create-bundle-discounts-1yizbwg/), cross-selling, and more.

* For example, if a customer adds a camera to their cart, offer a discount on camera accessories such as lenses, tripods, or memory cards.

You can use all the product eligibility options available in the "Include/exclude specific products" condition.

Differently from the "Include/exclude specific products" condition, this condition does not require the current line item to be eligible for the selected product eligibility options.

## Minimum/maximum purchase requirements
![Screenshot of a "minimum/maximum purchase requirements" condition](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_1v0foqj.png)

You can require a minimum/maximum quantity/subtotal for line items to be eligible for the discount, using [purchase requirements options](/en/article/purchase-requirements-options-in-regios-automatic-discounts-wahnji/).

## Include/exclude one-time purchases or subscriptions
![Screenshot of a "Include/exclude selling plans" condition](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_n8zoov.png)

You can make a discount apply to only one-time purchases or subscriptions using this condition.

Read [this article](/en/article/selling-plans-options-in-regios-automatic-discounts-1pyd1lp/#2-advanced-logic-builder) to learn about the available options.

## Compare numbers
![Screenshot of a "Compare this number" condition](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_10gx9a1.png)

You can compare a number/quantity from the customer/order to a number known ahead of time, as an additional way to filter who gets a discount.

The most common use of this is for first-time customer discounts.

There are 3 fields you can use to decide the logic:
* **Compare this number:** Represents a number available at the time of the discount calculation.
* **To this number:** Represents another number available at the time of the discount calculation.
* **Compare by:** Which mathematical operation to use to compare the 2 numbers.

Options available for "Compare this number":
* Constant number
* Customer number of orders
* Shipping rate
* Total quantity (of a cart line variable)
* Total price (of a cart line variable)
* Number of uniques: [Number of Uniques](https://regiostech.crisp.help/en/article/number-of-uniques-eqe8lu/)
* Number variable

![Screenshot of the "Compare by" options](https://storage.crisp.chat/users/helpdesk/website/d13e90de659a8800/image_hz7chg.png)

Options available for "Compare by":
* Equals (==)
* Not equal (!=)
* Less than (<)
* Less than or greater to (<=)
* Greater than (>)
* Greater than or equal to (>=)

## Examples
* 1st order discount: `Customer number of orders == 0`
* Discount on the 3rd order for every customer: `Customer number of orders == 2`
* Discount for repeat customers: `Customer number of orders >= 1`

## Calculate a number
![Screenshot of a calculation condition that multiplies the count of specific products by 3](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_152ciye.png)
For more advanced discounts, you can use dynamically compute number variables to use in comparisons.

[Number Calculation Conditions](/en/article/number-calculation-conditions-3qf292/)

## Include/exclude markets
![Screenshot of the market criteria editor showing specific markets selected](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_u0sueh.png)

You can include or exclude customers from receiving a discount, using various [market eligibility conditions](/en/article/market-eligibility-options-in-regios-discounts-k747wq/).

## Include/exclude retail locations
![Screenshot of the retail location criteria editor showing specific retail locations selected](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_yhwpuy.png)

You can include or exclude customers from receiving a discount, using the [Retail Location discount type](/en/article/retail-location-discounts-1cho5yo/).

## Include/exclude B2B companies
![Screenshot of a B2B company eligibility condition](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_30vdgg.png)

You can include or exclude specific Shopify B2B companies from receiving a discount, using the [B2B Company discount type](/en/article/b2b-company-discounts-1nt7c7b/).

## Compare delivery address
![Screenshot of a compare delivery address condition](https://storage.crisp.chat/users/helpdesk/website/-/d/1/3/e/d13e90de659a8800/image_d5cawv.png)

You can create discounts based on shipping address fields. More info: [Shipping Address Discounts](/en/article/shipping-address-discounts-1u02f8t/)

## Have any feedback for us?
We want to hear about your experience with our app! [Leave a review on the Shopify App Store](https://apps.shopify.com/regios-automatic-discounts#modal-show=ReviewListingModal).