> ## Documentation Index
> Fetch the complete documentation index at: https://docs.digifist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Conditions

> The eleven condition blocks in Galantis Discount Flow — cart, customer, product, and time-and-place checks that decide who gets the discount.

Condition blocks are the targeting layer of a Galantis Discount Flow campaign. Each condition checks one fact about the cart, the customer, or the moment of purchase, then routes the flow through its **Then** output when the check passes or its **Otherwise** output when it fails. Chaining conditions — and combining them with [logic gates](/galantis/discount/rule-builder/logic-gates) — is how a flow narrows from "everyone" down to exactly the carts that should be discounted.

Eleven conditions are available, grouped below by what they look at. Conditions that compare a number share the same set of six operators.

## Operators

Numeric conditions — **Cart total**, **Item quantity**, and **Order count** — pair an operator with a value:

| Operator                    | Passes when                              |
| --------------------------- | ---------------------------------------- |
| is greater than             | The value is strictly above your number  |
| is greater than or equal to | The value is at or above your number     |
| is less than                | The value is strictly below your number  |
| is less than or equal to    | The value is at or below your number     |
| equals                      | The value matches your number exactly    |
| does not equal              | The value is anything except your number |

## Available conditions

<Tabs>
  <Tab title="Cart">
    ### Cart total

    Checks the cart subtotal against an amount in your store's currency.

    **Fields:** an operator plus an **Amount** field, prefixed with your store's own currency symbol.

    This is the workhorse condition for spend thresholds — "carts over 100 get free shipping" starts with a Cart total block set to **is greater than** 100.

    ***

    ### Item quantity

    Checks the number of items in the cart.

    **Fields:** an operator plus a **Quantity** field.

    Use it to gate offers behind a minimum basket size, or to route small carts to a different incentive than large ones.

    <Frame>
      <img src="https://mintcdn.com/digifist/24Rg3l8FII7oYApT/images/galantis/discount/rule-builder/item-quantity.png?fit=max&auto=format&n=24Rg3l8FII7oYApT&q=85&s=5e26a90bad4dc632c22244e7c6de189d" alt="A condition block selected on the canvas with its operator and value fields open in the settings panel" width="3280" height="2186" data-path="images/galantis/discount/rule-builder/item-quantity.png" />
    </Frame>
  </Tab>

  <Tab title="Customer">
    ### Customer tag

    Checks whether the logged-in customer has a specific Shopify tag.

    **Fields:** a **Customer tag** text field (for example, `vip`).

    The tag must already exist on the customer in Shopify — the Rule Builder does not create tags. Only logged-in customers carrying the tag will match.

    ***

    ### Customer segment

    Checks which segment the customer belongs to.

    **Fields:** a **Segment** select with four options — **New customers**, **Returning customers**, **VIP**, and **Wholesale**.

    <Note>
      Shopify checkout cannot read Shopify's native customer segments directly, so **VIP** and **Wholesale** are derived from the customer's tags and order count. This keeps segment matching consistent across the storefront and checkout.
    </Note>

    ***

    ### Order count

    Checks the customer's past order count.

    **Fields:** an operator plus an **Orders** field.

    Useful for loyalty-style offers — for example, a reward that unlocks once a customer has placed at least five orders.

    ***

    ### First order

    Passes when the customer is placing their first order. It has no fields to configure — connect its **Then** output to your first-purchase offer, or use its **Otherwise** output to target everyone except first-time buyers.

    ***

    ### Discount code

    Passes when the customer has entered a specific discount code.

    **Fields:** a **Code** text field (for example, `WELCOME10`).

    <Warning>
      Adding a Discount code condition changes the nature of the whole campaign: it becomes a code-based discount. Customers must enter the code at checkout for any part of the flow to apply — it no longer applies automatically.
    </Warning>
  </Tab>

  <Tab title="Products">
    ### Specific products

    Passes when the cart contains specific products.

    **Fields:** a **Products** field that opens Shopify's resource picker, so you select items directly from your catalog.

    ***

    ### Specific collections

    Passes when the cart contains items from selected collections.

    **Fields:** a **Collections** field that opens Shopify's resource picker.

    Collections are usually the better choice for broad merchandising rules ("anything from the Sale collection"), while Specific products suits narrow, hand-picked offers.
  </Tab>

  <Tab title="Time & place">
    ### Day of week

    Keeps the flow active only on selected weekdays.

    **Fields:** a **Days** multiselect covering Monday through Sunday.

    Use it for weekend-only promotions or weekday flash offers without editing the campaign twice a week.

    ***

    ### Customer country

    Matches the customer's shipping country.

    **Fields:** a **Countries** multiselect. Available countries: United States, Canada, United Kingdom, Germany, France, Netherlands, Australia, and Turkiye.

    Use it to restrict a promotion to specific markets — for example, free shipping only for domestic orders.
  </Tab>
</Tabs>

<Frame>
  <img src="https://mintcdn.com/digifist/24Rg3l8FII7oYApT/images/galantis/discount/rule-builder/conditions-panel.png?fit=max&auto=format&n=24Rg3l8FII7oYApT&q=85&s=6ca590c29507ecf4235f513dd364a28c" alt="A condition block selected on the canvas with its operator and value fields open in the settings panel" width="3280" height="2186" data-path="images/galantis/discount/rule-builder/conditions-panel.png" />
</Frame>

<Note>
  Conditions that look at the customer — **Customer tag**, **Customer segment**, **Order count**, and **First order** — require a logged-in customer. Guest shoppers cannot match them on the storefront or at checkout, so their flow follows the **Otherwise** path.
</Note>

## Condition reference

| Condition            | Checks                                | Fields                                 |
| -------------------- | ------------------------------------- | -------------------------------------- |
| Cart total           | Cart subtotal                         | Operator + **Amount** (store currency) |
| Item quantity        | Number of items in the cart           | Operator + **Quantity**                |
| Customer tag         | Shopify tag on the logged-in customer | **Customer tag**                       |
| Customer segment     | New / Returning / VIP / Wholesale     | **Segment**                            |
| Specific products    | Cart contains selected products       | **Products** (resource picker)         |
| Specific collections | Cart contains items from collections  | **Collections** (resource picker)      |
| Order count          | Customer's past order count           | Operator + **Orders**                  |
| First order          | Customer's first-ever order           | None                                   |
| Discount code        | Customer entered a specific code      | **Code**                               |
| Day of week          | Current weekday                       | **Days** (multiselect)                 |
| Customer country     | Shipping country                      | **Countries** (multiselect)            |

## Related guides

* [Logic gates](/galantis/discount/rule-builder/logic-gates) — Combining conditions with AND, OR, and NOT
* [Actions & discount types](/galantis/discount/rule-builder/actions) — What happens when conditions pass
* [Testing flows](/galantis/discount/rule-builder/testing-flows) — Simulating carts and customers against your conditions
