Skip to main content Link Search Menu Expand Document (external link)

if-elseif-else-endif block

  • If-elseif-else-endif block uses multiple conditional statements that are met to show content.

Example:

{% if contact_name == "John" %}
    This block of text will be shown with the contact name as John.
{% elsif contact_name == "Karen" %}
    This block of text will be shown with the contact name as Karen.
{% else %}
    This block of text will show with no name.
{% endif %}