{"section":"tutorials","requestedLocale":"en","requestedSlug":"merchandising-rule-conditions","locale":"en","slug":"merchandising-rule-conditions","path":"docs/en/tutorials/intelligent-search/relevance/merchandising-rule-conditions.md","branch":"main","content":"In the [Manual Editor](/en/docs/tutorials/creating-merchandising-rules-manual-editor) and the [Visual Editor (beta)](/en/tutorial/creating-merchandising-rules-visual-editor-beta--6xteumx9MsDt0uEppbChu3), the merchandising rule conditions follow the `{criterion} {operator} {value}` format. For example, a condition may be `brand is athletic`, in which `brand` corresponds to the criterion, `is` to the operator, and `athletic` to the value.\n\nLearn about the criteria and possible operators for each type of editing in the following tables:\n\n## Criteria\n\n| Name                | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Operators                     | Types of editing                                                                                                                                      |\n|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `Term`              | Word searched by the customer that will be related to the rule. Open input field.                                                                                                                                                                                                                                                                                                                                                                                       | - `is` <br /> - `contains`       | **Manual Editor:** <br /> - Trigger rules <br /> - Customization rules                                                                                     |\n| `ID`                | Searches for the exact ID of a catalog element related to the rule. Possible IDs are: **ProductID**, **ProductRefID**, **SKUID**, **SKURefID**, and **EAN**. Open input field.                                                                                                                                                                                                                                                                                          | `is`                           | **Manual Editor:** <br /> - Customization rules                                                                                                          |\n| `category`          | Selectable value that represents a category added to the store's catalog.                                                                                                                                                                                                                                                                                                                                                                                               | - `is` <br /> - `only`           | - All editing scenarios <br /><br /> **Manual Editor:** <br /> - Trigger rules <br /><br /> **Visual Editor**                                                    |\n| `department`        | Selectable value that represents a department added to the store's catalog.                                                                                                                                                                                                                                                                                                                                                                                             | - `is` <br /> - `only`           | - All editing scenarios <br /><br /> **Manual Editor:** <br /> - Trigger rules <br /><br /> **Visual Editor**                                                    |\n| `brand`             | Selectable value that represents a brand added to the store's catalog.                                                                                                                                                                                                                                                                                                                                                                                                 | - `is` <br /> - `only`           | - All editing scenarios <br /><br /> **Manual Editor:** <br /> - Trigger rules <br /><br /> **Visual Editor**                                                    |\n| `productclusternames` | Selectable value that represents a collection added to the store's catalog.                                                                                                                                                                                                                                                                                                                                                                                            | - `is` <br /> - `only`           | - All editing scenarios <br /><br /> **Manual Editor:** <br /> - Trigger rules <br /><br /> **Visual Editor**                                                    |\n| `promotion`         | Selectable value that validates if there is at least one promotion linked to the item (`yes`).                                                                                                                                                                                                                                                                                                                                                                          | - `is` <br /> - `only`           | - All editing scenarios <br /><br /> **Manual Editor:** <br /> - Trigger rules <br /><br /> **Visual Editor**                                                    |\n| `sellername`        | Selectable value that represents the name of a seller.                                                                                                                                                                                                                                                                                                                                                                                                                  | - `is` <br /> - `only`           | - All editing scenarios <br /><br /> **Manual Editor:** <br /> - Trigger rules <br /><br /> **Visual Editor**                                                    |\n| `subcategory`       | Selectable value that represents a subcategory added to the store's catalog.                                                                                                                                                                                                                                                                                                                                                                                            | - `is` <br /> - `only`           | - All editing scenarios <br /><br /> **Manual Editor:** <br /> - Trigger rules <br /><br /> **Visual Editor**                                                    |\n| `{{specification}}` | Any active catalog specification checked as **Filter** appears as a custom criterion, with the same possible values. The name of the criterion is exactly the name of the added specification. For example, if there is an active specification called `Color`, the displayed criterion is `Color`. <br /><br /> You cannot create rules with specifications that were not checked as **Filter**. Learn more about this field in [Adding product specifications or fields](/en/docs/tutorials/adding-specifications-or-product-fields) or [Adding SKU specifications or fields](/en/docs/tutorials/adding-sku-specifications-or-fields). | - `is` <br /> - `only`           | - All editing scenarios <br /><br /> **Manual Editor:** <br /> - Trigger rules <br /><br /> **Visual Editor**                                                    |\n\n> ⚠️ The `department`, `category`, and `subcategory` criteria only appear as options to be included in Merchandising Rules if all three category levels are previously configured in the **Catalog**.\n\n## Operators\n\n| Name       | Description | Criteria | Example |\n|------------|-------------|----------|---------|\n| `is`       | - If you create a rule in the Manual Editor using `Term` as a criterion, it will return search results with exact words.<br />- In other editing scenarios, it enables other conditions than the current one to also be applied. | - `Term`<br />- All (except for `Term`) | - If you add `black friday` and a customer searches for `black friday`, the merchandising rule is triggered. However, if the customer searches for `black friday promotion`, the rule will not be triggered.<br />- If the condition is brand is `athletic`, even if the customer selects `hotsport`, `sportist`, and `athletic` in the search, the merchandising rule will be triggered. |\n| `contains` | When creating a rule in the Manual Editor using `Term` as a criterion, it generates search results that are not limited to exact words. | `Term` | If you add `black friday` and a customer searches for `black friday` or similar expressions such as `black friday promotion`, the merchandising rule will be triggered. |\n| `only`     | Limits the filter to the one that you added. | All (except for `Term`) | If the condition is brand is `athletic`, and the customer selects `hotsport` first in the search, even if they select `athletic` later, the merchandising rule will not be triggered. It will only work if the first brand filter selected is `athletic`. |"}