# 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="https://157604815-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MJfBhHG_1ipE5lMX4qT%2Fuploads%2FgkWvDLis3aiEkxPvAWP3%2Fimage%20(26).png?alt=media&#x26;token=6e8d3d87-6b59-4e35-94fe-c192e16bc763" 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)
