Skip to content

Instantly share code, notes, and snippets.

@jasonayre
Last active August 1, 2018 17:12
Show Gist options
  • Save jasonayre/f305bf51964cf1c411a05bc45298976e to your computer and use it in GitHub Desktop.
Save jasonayre/f305bf51964cf1c411a05bc45298976e to your computer and use it in GitHub Desktop.
reaction email liquid example
// readable version
{% if message.participant.prefix contains 'Dr' %}
Hello {{ message.participant.prefix}} {{message.participant.last_name}}
{% else %}
Hello {{message.participant.first_name}}
{% endif %}
// with or statement
{% if message.participant.prefix contains 'Dr' or message.participant.prefix.contains 'Dr.' %}
Hello {{ message.participant.prefix}} {{message.participant.last_name}}
{% else %}
Hello {{message.participant.first_name}}
{% endif %}
// one liner
{% if message.participant.prefix contains 'Dr' %}Hello {{ message.participant.prefix}} {{message.participant.last_name}}{% else %}Hello {{message.participant.first_name}}{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment