> For the complete documentation index, see [llms.txt](https://docs.overse.app/hubble/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.overse.app/hubble/conditions/create-a-condition.md).

# Create a condition

Conditions help you define when and for whom your content should appear. Follow these steps to create a new condition in Hubble.

{% stepper %}
{% step %}
**Navigate to the Conditions page**

Go to the **Conditions** section in your Hubble dashboard or sidebar.

<figure><img src="https://252181162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNjbkcqEVwk7mzEfZieR%2Fuploads%2Fgit-blob-a8a26569a2039301cf58e8a305aa2db53c8d32b3%2FDashboard%20-%20%20Conditions.png?alt=media" alt=""><figcaption></figcaption></figure>

\
Click **Create new condition** to start building your first condition.

<figure><img src="https://252181162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNjbkcqEVwk7mzEfZieR%2Fuploads%2Fgit-blob-54b9356994886259b174d446959667d2d4f600b8%2FConditions%20_%20Index%20_%20Empty%20_%20Create.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Set up basic details**

Begin by giving your condition a name and optional description.\
Use clear names so it’s easy to identify your condition later — for example:

* “Weekend Shoppers”
* “VIP English Customers”

<figure><img src="https://252181162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNjbkcqEVwk7mzEfZieR%2Fuploads%2Fgit-blob-c45af7239d408142edb80a28d9cc4ac892e3c19c%2FConditions%20_%20New%20%20_%20Base%20settings.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Add a condition type**

Each type corresponds to a different data source, such as:

* **Customer** – Rules based on tags, total amount spent, account age, etc.
* **Market** – Rules based on language or region.
* **Date and Time** – Rules that depend on specific days or time ranges.

Adding a type creates a panel where you can define one or more rules for that category.

<figure><img src="https://252181162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNjbkcqEVwk7mzEfZieR%2Fuploads%2Fgit-blob-b016e51254bafa995231e323a72f6ebe134457b8%2FConditions%20_%20New%20%20_%20First%20condition%20type.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Click **+ Add type** button to add additional Condition types if needed.
{% endhint %}
{% endstep %}

{% step %}
**Configure matching logic**

Under **Condition must match**, choose how the rules combine:

* **All rules** – Every rule must be true for the condition to apply.
* **Any rule** – The condition applies if any one of the rules is true.![](https://github.com/by-overse/hubble-merchant-docs/blob/main/conditions/broken-reference)

<figure><img src="https://252181162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNjbkcqEVwk7mzEfZieR%2Fuploads%2Fgit-blob-8f23ef16ab828588653be081c44bc296adc9f0a8%2FConditions%20_%20New%20%20_%20Condition%20matching.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
This setting affects all rules within the condition.
{% endhint %}
{% endstep %}

{% step %}
**Add Rules**

Inside each type panel, click + **Add new rule** to define your rules.\
For example:

* Customer tag **contains** “VIP”
* Language **is equal to** “English”
* Day **is equal to** “Saturday”

<figure><img src="https://252181162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNjbkcqEVwk7mzEfZieR%2Fuploads%2Fgit-blob-64301173dedd8757f5585d2bd1953b44ba245052%2FConditions%20_%20New%20%20_%20Add%20rule.png?alt=media" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can add multiple rules under the same type or across different types.
{% endhint %}
{% endstep %}

{% step %}
**Save the condition**

When you’re done configuring, click **Save**.\
Your new condition will now be available to assign to blocks anywhere in your store.

<figure><img src="https://252181162-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgNjbkcqEVwk7mzEfZieR%2Fuploads%2Fgit-blob-f404d5e94255c8420ffe931b18f9f6e167da1e23%2FConditions%20_%20New%20%20_%20Save.png?alt=media" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}
