# Assign a condition to content

{% stepper %}
{% step %}
**Navigate to the content you want to assign**

Go to the content you want to control visibility for.\
You can assign a condition to either of these contents:

* Dynamic block -> Setting with conditions.
* Order item action -> Target action.

In this example, we will use the Dynamic block we [created in this guide](/hubble/blocks/dynamic-blocks.md).

<figure><img src="/files/vIL4425GvNBFMtjS3yBW" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Locate the Condition section and Assign a condition**

In the block editor, find the **Conditions** section.\
This is where you can link your content to a previously created condition or create a new one directly.

You have two options:

* **Select an existing condition** – Use the dropdown to pick a condition you’ve already created.
* **Create a new condition** – Click **Add new condition** to define one in a new tab.

<figure><img src="/files/65d9U1qGIUguYG0xFhVF" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Assigning the same condition to multiple blocks helps you keep content visibility consistent across your store.
{% endhint %}
{% endstep %}

{% step %}
**Save and Preview**

After assigning the condition, click **Save** to apply it.

<figure><img src="/files/KXLMs97uvVZKJ0chLP2O" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can then use Shopify’s Accounts Editor to preview how your content behaves for different audiences or scenarios based on your assigned conditions.
{% endhint %}
{% endstep %}
{% endstepper %}


---

# 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/assign-a-condition-to-content.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.
