A Boolean is used for when you want something to be either true or false, like a lighting switch that can be toggled on or off

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

Works great for:

  • Show/hide specific elements, i.e. making a CTA button optional.

  • Toggle direction, i.e. in a component showing an image on the left, and a text on the right, you can make a toggle to allow the marketeer to switch the direction, so text shows on the left and image on the right.

Template Editor

Notice how with Boolean we can wrap other code bits into a Liquid statement like so:

{% if my_input_group_name.my_text_align %}
  <td align="left">
   {% else %}
   <td align="center">
    {% endif %}

Email Editor

Last updated