> For the complete documentation index, see [llms.txt](https://usermanual.ergonode.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://usermanual.ergonode.com/products/segments/conditions.md).

# Conditions

Set the conditions a product must meet to be added automatically to a segment, by dragging them onto the Conditions tab.

This is probably the most important tab in Segments, as here you are able to set up different conditions for a product to meet, so they will be added to a segment by the system.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2F93hfhe55WsmJx7Fj9aD0%2Fimage.png?alt=media&#x26;token=d8a30bc5-0852-4df7-abc5-dac4ef48dc82" alt=""><figcaption></figcaption></figure>

Available conditions are displayed on the left panel, to add them you simply drag and drop them.

To find a condition, click on the magnifying glass icon above the list and type its name. The ***X*** icon closes the search and shows the whole list again. To collapse the ***Conditions*** panel and make more room, click on the double arrow (***«***) icon at the bottom of the panel. To bring it back, click on ***»*** or on the ***Conditions*** tab.

Most conditions have an ***Operator*** field, for example ***belongs*** or ***does not belong*** for ***Product category***. The fields of each condition are listed in [Available conditions](https://usermanual.ergonode.com/products/segments/conditions#available-conditions) below.

In conditions where the user has a multi-select type to choose from, it's possible to select more than one. Confirm your choice with ***Ok***.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2F3fOzwGFwumDwlKErouZ8%2Fimage.png?alt=media&#x26;token=404cd750-7d41-4914-b69d-dc3dffe0b3c4" alt=""><figcaption></figcaption></figure>

Please be aware that configuration means: "if the product belongs to Creams or Hand creams category". If you wish for a condition to say: "if the product belongs to more than one (specific) category" the proper configuration is to use the same condition twice.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FxBlxQ1vVUTEpTD3e8IoO%2Fimage.png?alt=media&#x26;token=fc8a76fa-009f-4187-99ad-1dd58f25b5c3" alt=""><figcaption></figcaption></figure>

You can add one or more conditions but remember that all of them will need to be met for a product to appear in that segment (**AND** operator).

If you need more space, click on ***Add 10 rows***, and ten new rows will be added at the bottom.

To remove a condition, point at it, open the ***three dots*** menu in its upper right corner and choose ***Remove***. The condition is removed at once, without confirmation.

Depending on the condition there may be extra options to choose from.

<figure><img src="https://171427267-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM9BbYBbDPiJapb75xJ2k%2Fuploads%2FNKf7qnbjk0jxKYUZDNjJ%2Fimage.png?alt=media&#x26;token=eaeab225-26f7-450f-b480-3d5bba90d05c" alt=""><figcaption></figcaption></figure>

When you are done, click on ***Save changes***. Until you save, a circular arrows icon shows next to the tab name.

## Available conditions

All fields of a condition are required. The ***Attribute name*** lists show attribute codes.

| Condition                              | Description                                                                                                                                                                                    | Additional information                                                                               |
| -------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------- |
| ***Attribute has value***              | ***Attribute name***                                                                                                                                                                           | Any attribute.                                                                                       |
| ***Attribute option value***           | ***Attribute name***, ***Operator*** (*has*, *does not have*), ***Attribute value***                                                                                                           | Select and multi-select attributes. ***Attribute value*** lists the options of the chosen attribute. |
| ***Numeric attribute value***          | ***Attribute name***, ***Operator*** (*equal (=)*, *not equal (≠)*, *greater than (>)*, *less than (<)*, *greater than or equal to (>=)*, *less than or equal to (<=)*), ***Attribute value*** | Numeric attributes.                                                                                  |
| ***Product category***                 | ***Operator*** (*belongs*, *does not belong*), ***Category name***                                                                                                                             | You can choose more than one category.                                                               |
| ***Product category tree***            | ***Operator*** (*belongs*, *does not belong*), ***Category tree name***                                                                                                                        | You can choose more than one category tree.                                                          |
| ***Product completeness***             | ***Completeness*** (*is complete*, *is not complete*)                                                                                                                                          |                                                                                                      |
| ***Product completeness in language*** | ***Completeness*** (*is complete*, *is not complete*), ***Language***                                                                                                                          |                                                                                                      |
| ***Product SKU***                      | ***Operator*** (*is equal*, *is not equal*, *has*, *match wildcard*, *match regexp*), ***Value***                                                                                              | Type the SKU or the pattern in ***Value***.                                                          |
| ***Product status***                   | ***Operator*** (*has*, *does not have*), ***Status name***, ***Language***                                                                                                                     | You can choose more than one status and language.                                                    |
| ***Product template***                 | ***Operator*** (*has*, *does not have*), ***Template name***                                                                                                                                   | You can choose more than one template.                                                               |
| ***Product type***                     | ***Operator*** (*is*, *is not*), ***Product type*** (*Simple product*, *Grouping product*, *Product with variants*)                                                                            | You can choose more than one product type.                                                           |
| ***Text attribute value***             | ***Attribute name***, ***Operator*** (*is equal to*, *is not equal to*, *has*, *does not have*), ***Value***                                                                                   | Text attributes (not text area attributes).                                                          |


---

# 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://usermanual.ergonode.com/products/segments/conditions.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.
