> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.upsell.com/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).

# How do conditions work on Upsell.com? | Shopify

Conditions allow you to segment your customers and show each of them a different set of widgets.

With conditions, you can create more accurate and personalized flows in the Flow Builder, showing each customer the right offer at the right time based on their properties and actions.

This article and video will go over how to create and manage conditions, as well as how the logic behind conditions works so that you can understand exactly what will be shown to customers when you set it up.

${youtube}[Video](VbSYw-UapiA)

### Hierarchy of conditions

* **Conditions** are placed inside **pages**
* **Slots** are created inside **conditions**, each slot represents a specific location on the page
* **Widgets** are grouped inside **slots**

This means that conditions control which widget groups appear in a specific location on a specific page.

Once a slot is placed in your Shopify editor, its location remains fixed - conditions only change the content within the slot, not its placement.

![Conditions hierarchy](https://storage.crisp.chat/users/helpdesk/website/a78a283618511000/image_1aozpgk.png)

### Priority and logic of conditions

When multiple conditions exist on a page, priority is based on their order from **top to bottom**.

* When a customer reaches a page, Upsell.com checks the first condition
‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ ‎ * ‎If that condition **is** **satisfied**, its **widgets are displayed**, and Upsell.com stops checking further conditions
‎ ‎ ‎ ‎ ‎‎ ‎ ‎ ‎ ‎  * If within a condition that is satisfied, there is an **empty slot**, you can choose what happens (see later: '**Empty slots in a condition**')
* If the first condition is **not** **satisfied**, Upsell.com checks the second condition to see if it's satisfied, and so on... 
* If **no conditions are satisfied**, or **no conditions have been created**, the **default condition** applies 'in any event', displaying its assigned widgets

![Conditions priorities](https://storage.crisp.chat/users/helpdesk/website/a78a283618511000/image_1gdo104.png)

### And/Or conditions - combining multiple rules

You can now create advanced conditions using **AND** and **OR** logic to show specific widgets based on multiple customer properties.

* **AND** = *All* rules must be true for the condition to apply  
* **OR** = *At least one* rule must be true for the condition to apply  

This gives you much more flexibility in targeting specific customers with the right upsell or content.

✅ **Example 1: Show a widget only if the customer has Product X AND cart value is over $50**

This uses **AND** logic:  
* Rule 1: Product X is in the cart
**AND**
* Rule 2: Cart/order value is greater than $50

Only if **both** conditions are met, the widget(s) will be shown.

![AND condition](https://storage.crisp.chat/users/helpdesk/website/-/a/7/8/a/a78a283618511000/and_17m0ufs.png)

✅ **Example 2: Show a widget if the customer has Product X OR they’re a returning customer**

This uses **OR** logic:  
* Rule 1: Product X is in the cart
**OR**  
* Rule 2: Customer belongs to the “purchased at least once” segment

If **either** condition is met, the widget(s) will be shown.

![OR condition](https://storage.crisp.chat/users/helpdesk/website/-/a/7/8/a/a78a283618511000/or_em3zwh.png)

### Empty slots in a condition

If a slot is empty within a condition you can decide whether to:-

* continue to the next condition; or
* keep the slot empty

**Example**

In the following example, customers reaching the thank you will be checked to see if they satisfy 'My new Condition (2)'. 

If they do, then the customer will be shown to widgets within this condition as no slots have been populated with widgets.

If 'continue to the next condition' is selected, then Upsell.com will then move onto the next condition 'Announcement Bar' to check if that 'announcement bar' slot is populated there. If it is, it will show the widgets therein. If not, it will follow the instructions and either 'continue to the next condition' or 'keep the slot empty', (and so on down the list of conditions).

If 'keep the slot empty' is selected, then Upsell.com will not check the 'Announcement Bar' condition, so even if there are slots populated with widgets within the 2nd, 3rd, 4th conditions etc, this is irrelevant since Upsell.com will not check beyond the first condition (for that slot). 

![](https://storage.crisp.chat/users/helpdesk/website/-/a/7/8/a/a78a283618511000/image_1gijtsr.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/a/7/8/a/a78a283618511000/image_10q05m9.png)

If you select **continue to the next condition** Upsell.com will check the next condition down to see if that slot is populated with widgets. If yes, it will display the widgets in that slot. If not, it will move down to the next condition (if so selected), and so on.

If you select **keep the slot empty** Upsell.com will **not** check further conditions to see if that slot is populated; it will remain empty.

### Managing conditions

##### Creating a condition

To create a new condition:

1. Click **Add condition** in the conditions bar
2. In the **Actions menu**, the setup wizard will open
3. Define your condition using AND/OR rules as needed
4. Click **Save**

We recommend renaming the condition to reflect its purpose.

![Add condition](https://storage.crisp.chat/users/helpdesk/website/a78a283618511000/image_13ato35.png)

Conditions can be based on various factors such as cart contents and certain other customer information. Check the Condition dropdown for the latest available options.

![Conditions](https://storage.crisp.chat/users/helpdesk/website/-/a/7/8/a/a78a283618511000/image_xb8ikx.png)

Depending on the selected condition, additional options will appear in the actions menu on the right-hand side of the page. Set these parameters according to your desired outcome.

Once saved, the condition appears in the conditions bar.

![Condition preview](https://storage.crisp.chat/users/helpdesk/website/a78a283618511000/image_zoxf45.png)

### Editing an existing condition

Once created, conditions appear in the conditions bar where you can:

* **Toggle the condition on/off** (disabled conditions will not display widgets)
* **View a summary** of condition rules and associated products
* **Edit settings** via the **Actions menu**
* **Delete the condition** if no longer needed

![Managing a condition](https://storage.crisp.chat/users/helpdesk/website/a78a283618511000/image_8icsws.png)

| 📌 **Next:** Start setting up your first condition with the [Conditions Settings article](https://help.upsell.com/en/article/how-to-use-the-upsellcom-to-add-conditions-and-upsells-shopify-120kpr5/)


### Well, that's a wrap!

If this article did not solve your issue, our support team is available for you 24/7. Just click the live chat button at the bottom-right corner of this page.

| 📢 Did you know we have a YouTube channel? Don't forget to [subscribe to the channel](https://www.youtube.com/channel/UCyhFu9538WtMSUcdFERO4JA) to keep in touch with us and our news and updates
| 🙏 If you find our app useful, help other merchants find it by [leaving us an honest review on the Shopify App Store](https://apps.shopify.com/reconvert-upsell-cross-sell#modal-show=ReviewListingModal)! It means the world to us
| 📧 Please let us know if you spot any typos, mistakes, or omissions via care@upsell.com
