🦙
Alpaco Developer Documentation
  • Introduction
  • Fundamentals
    • What are the fundamentals
    • Creating an email
  • Template
    • Base
    • Blocks
    • Input Groups
      • Input Types
        • Text String
        • Textarea
        • Select
        • Boolean
        • Image
          • Image settings
        • Color Picker
  • Account settings
    • Integrations
    • Merge Tags
  • How to
    • Escape code from the editor
    • Use custom fonts
Powered by GitBook
On this page
  • Template Editor
  • Email Editor
  1. Template
  2. Input Groups
  3. Input Types

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

PreviousSelectNextImage

Last updated 1 year ago

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

This is how it looks in the Template Editor
This is how it can be applied in the code. Notice the {% if statement %} wrapping around the TD's
This is how it looks in the Email Editor