# Visibility Control

With **YayMail Pro/Free** and the **YayMail Conditional Logic** addon, you can control **when and to whom** specific content appears.

This feature allows you to **show or hide any content block** based on one or more conditions — giving you the flexibility to tailor email messages based on order details, customer roles (coming soon!), purchased products, payment methods, and more.

💫 For example:

* Show a discount code **only when customers order between $50 and $100**
* Add special instructions **only for orders with local pickup**
* Display product-specific messages **only when certain items are purchased**

No more one-size-fits-all emails — Conditional Logic helps you deliver personalized, relevant content in every message. 💪

### How it works

You can choose to display any block by one or more conditions when using YayMail Pro with [YayMail Conditional Logic](https://yaycommerce.com/yaymail-addons/conditional-logic-addon-for-yaymail?utm_source=yaymail-docs\&utm_medium=docs-conditional-logic).&#x20;

<figure><img src="/files/8nBybytDpfykq73zNGtJ" alt=""><figcaption></figcaption></figure>

You can set to display a certain email block if:

* Billing country is US
* Product category is Beanie
* Minimum order total is $100
* Maximum order total value is $500
* Payment method is COD
* Shipping method is Fast delivery
* Coupon codes is BLACKFRIDAY
* And so much more!

Want to kickstart it? Check out [YayMail Conditional Logic addon](https://docs.yaycommerce.com/yaymail/addons/conditional-logic?utm_source=gitbook\&utm_medium=yaymail\&utm_campaign=conditional-logic)


---

# 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/yaymail/visibility-control.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.
