> For the complete documentation index, see [llms.txt](https://helpcenter.channable.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://helpcenter.channable.com/manage-improve-product-data/creatives-create-and-edit-images/create-an-image-template/how-to-use-conditional-objects-in-the-image-editor.md).

# How to use conditional objects in the Image Editor

Show or hide template layers based on product data conditions.

### What are conditional objects?

Conditional objects are a bit like mini [rules in Channable](/manage-improve-product-data/rules-bulk-edit-and-enrich/rules-in-channable.md) in the image editor (on object level). Just like the standard rules you use to clean up your product data, conditional objects follow a similar logic: “IF an item meets specific criteria, THEN the object performs an action” (show or hide).

Instead of applying a rule to your entire product catalog, you apply it to a specific layer or “object” in your image template such as a badge, a price tag, or brand logo.

{% hint style="info" %}

#### Example

If you have a “Sale” badge on your product images and you only want this badge to appear when a product is actually discounted.

Let’s say you want to hide it if the sale price field is empty:

You select the sale badge in the Image Editor and set the condition:

* “IF sale\_price is empty, THEN Hide this object.”
  {% endhint %}

### Show or hide objects

* **Show:** The object is invisible by default and only shows under certain conditions.

  e.g. a "Free Shipping" icon only appears if `shipping_cost` is `0`.
* **Hide:** The object is visible by default but is hidden under certain conditions.

  e.g. removing a "New Arrival" badge if the `created_date` is older than 30 days.

### How to use conditional objects

1. In the Image Editor, select the object you want to add a condition to.
2. In the **Design** tab, go to **Condition**, then click **Create condition**.

   <div data-gb-custom-block data-tag="hint" data-style="info" class="hint hint-info"><p>Not sure how conditions work? Learn more about <a href="/manage-improve-product-data/rules-bulk-edit-and-enrich/how-to-use-conditions-if-in-rules.md">rule conditions</a>.</p></div>
3. A **Condition** modal will show where you can set up the conditions for the object.\
   ![](https://501928696-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fu8whzIfip72Kvn3M1bsc%2Fuploads%2Ff09eSqRgRvrXS99EJCyO%2FScreenshot%202026-07-23%20at%2008.50.21.png?alt=media\&token=5c6865ed-5068-4eea-8459-caf6f96098eb)
4. In **Options**, you can pause or delete the condition.

{% hint style="info" %}
You can also create a condition from the **Layers** tab. Find the object you want to set a condition for, and click the <i class="fa-split">:split:</i> icon.
{% endhint %}

{% hint style="info" %}

#### Good to know

When an object is hidden by an active condition, it will not be visible on the canvas. But if you click on the object in the **Layers** tab then outline of the object will show on the canvas.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://helpcenter.channable.com/manage-improve-product-data/creatives-create-and-edit-images/create-an-image-template/how-to-use-conditional-objects-in-the-image-editor.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
