Boolean
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
Last updated
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
Last updated
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.
Notice how with Boolean we can wrap other code bits into a Liquid statement like so: