# Intro to conditions

Conditions in Hubble let you decide **exactly when and for whom your content appears** — all from a single, unified interface.

\
They combine customer, current order, date/time, market and more rules into one powerful tool, so you can create precise and personalized shopping experiences.

***

#### What are Conditions?

A **Condition** is a set of rules that determine whether a block should be shown on your storefront.\
You can define rules based on **customers**, **current order**, **markets**, **dates**, and more — all in one place.

For example, you can:

* Show a **“Weekend Sale”** banner only on **Saturdays or Sundays**.
* Display special offers to **VIP customers** in the **English market**.
* Combine multiple filters to create rich, dynamic targeting scenarios.

***

#### How do Conditions work?

Each Condition is made up of **rules** — simple statements that check for specific data, such as:

* *Customer tag contains “VIP”*
* *Day is equal to “Sunday”*
* *Market language is “English”*

You can mix and match rule types freely within the same Condition.\
When the Condition is evaluated, it checks whether the defined rules match the current visitor.\
Depending on your settings, **all rules** or **any rule** must match for the Condition to apply.

***

#### Condition Logic

When creating a Condition, you can decide how the rules are combined:

* **All rules** – Every rule must match for the Condition to pass.
* **Any rule** – The Condition passes if *any one* of the rules matches.

Rules are evaluated globally across all rule types (e.g., customer, market, date/time).

***

#### Using Conditions

1. **Create a Condition**\
   Define its name and description, then choose the rule types (e.g., Customer, Date & Time).\
   This adds panels to configure each type of rule.
2. **Add Rules**\
   Add as many rules as you need — for example:
   * Customer tag contains “VIP”
   * Day is equal to “Saturday” or “Sunday”
3. **Assign to Blocks**\
   Once created, assign your Condition to a block.\
   That block will only appear when the Condition’s rules are satisfied.

***

#### Examples

**Weekend Shoppers**\
Show content only on weekends:

* Day is equal to Saturday
* Day is equal to Sunday

**Sunday VIP English Customers**\
Show content to English-speaking VIPs shopping on Sunday:

* Customer tag contains “VIP”
* Market language is “English”
* Day is equal to Sunday

***

#### 🚀 Benefits of Conditions

* **Unified logic** — One system for all types of targeting (customer, date, market, etc.)
* **Flexible combinations** — Mix and match rule types easily.
* **Powerful personalization** — Deliver content that truly fits each visitor and context.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.overse.app/hubble/conditions/intro-to-conditions.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
