# Combined condition

In a combined condition, you must select the eligible products. Then, the values of cart amount and quantity of items are restricted to these filtered products in the same condition.

For example, if you want to require cart items to be **Music** category, and the item quantity needs to be greater than 5, you can set it up as shown below.

Then, the customer needs to add at least 6x **Music** item so they can be qualified for the discount.

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

The combined condition can be used along with another single condition, too.

For example, if you want to run a promotion like Give a discount if the customer **spends more than $100 on the Music products**, only for the **first time order**, you can set it up as shown below.

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


---

# 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.yaycommerce.com/yaypricing/rule-settings/conditions/combined-condition.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.
