> For the complete documentation index, see [llms.txt](https://docs.samita.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.samita.io/label-groups/label-groups-condition.md).

# Label groups condition

**Label group condition** helps you manage where the label group can be displayed in the front store. There are **two options** for you to set up condition for the label group.&#x20;

**1. Keep individual label condition:** This condition allows you to **display label groups based on the individual rules of each label within the group**. Depending on the product and the conditions set for each individual label, the label group will display differently.

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

**Example:**

* Label A is set up for products X and Y.
* Label B is set up for product C.
* A label group (containing Label A and Label B) is assigned to collection Z, which includes products X, T, and C.

**With the above condition applied:**

* Product X will display Label A (since it matches Label A’s condition).
* Product C will display Label B (as it meets Label B’s condition).
* Product T does not meet the conditions for either Label A or Label B, **but since it’s part of collection Z (which has the label group assigned)**, it will still show the label group (which includes both Label A and Label B).

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

&#x20;

**2. Set a custom group condition:** This setting will **override all individual label rules and apply a new condition for the label group.** The label group will show for products/collections you configure in this setting: <br>

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

***Choose “any condition” if you have more than 1 condition:***

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

This is the result in the front store when using this condition:&#x20;

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

{% hint style="success" %}
**Friendly reminder!**

If you do encounter any difficulty while proceeding with these steps, don’t show any hesitation to contact us promptly via the email address [support@samita.io](https://help.samita.io/support@samita.io)

We are always willing to help with all sincerity!
{% 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 dynamically by asking a question.

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

```
GET https://docs.samita.io/label-groups/label-groups-condition.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
