Use cases
You can use the Boolean field to control almost every part of your theme template - from simple blocks of text to enabling/disabling scripts, etc. For example, you can use this field to show/hide information about sales for a particular product in your shop.
Setup
True value - String visible on switcher during edition. Default: True
False value - String visible on switcher during edition. Default: False
![](https://cdn.prod.website-files.com/5b6c11feb3323e6a02ff4849/5f56171805902a61f2d94bf7_GmpOUsGCEGDrhrYJK_GyuIXUeCP7deXgsW0g22774FolzWV3LhUq-5eS-dC9d0dNxV_2-QfIh0ppb1Sb2T75Yr8v6LEQodjg_JSdIVJKIdUU_-zia2k4gBtVNmFRHl9U_QkcW4-H.png)
Example Usage
{% assign show_sale = product.metafields.airf.show_sale %}
{% if show_sale == "true" %}
<p>This product is on sale!</p>
{% else %}
<p>This product is not on sale at this moment</p>
{% endif %}