Skip to main content

Boolean

A Boolean input is a simple on/off or true/false value, displayed as a switch in the Email Editor.

Works great for:

  • Show/hide specific elements, e.g. hiding an element on certain emails

  • Toggle direction, e.g. making a module switch layout direction

Validation is optional and can be enabled per input when needed:

  • Must change from default can force the marketer to flip the switch from its starting value before review/export

Boolean inputs do not support Required, because the value is always either on or off.

The output of the variable is true or false, so you can use it in a normal Liquid condition:

{% if article.show_cta %}
<a href="{{ article.button_link.url }}">{{ article.button_text }}</a>
{% endif %}