# Single condition

### **Single condition**

**Rule will take effect when any/all of condition is correct.**

![cart subtotal price](/files/VgQiQEFsRk84cv9dsqXw)

**Cart quantity** is greater than 3, It means count quantity of all line items.

**Example:** Your cart have 1 item of **Beanie** and 2 items of **Album** and 1 item of **Shirt** => We count 4 items, then greater than 3.

![](/files/TBNHRT21rRGgt0Yshtim)

**Is logged in customer** have 2 values: Logged in / Not logged in.\
**Example:** Only logged in user can see this discount.

![Logged in customer](/files/uEwa7cxJNEUfPQjma2uG)

**Customer role:** Only Administrator account role can see this discount

![Customer role](/files/8vuktjD8UALlomG3us2I)

**Customer role:** Only specific customer can see this discount

![](/files/XIPtCUU6nS7gRei8bEoZ)

**ALL condition:** When a customer has more than 2 items in the cart and they are a subscriber and the value of their cart is **greater than 100 THEN** they will have discount.

![](/files/GIc3QiCMbhYePYw9kukG)


---

# 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/single-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.
