Hello {{ firstName }}
as long as the recipient's contact profile contains a "firstName" property.{"key": "value"}
. Values can be a string, a number, an object, an array, true or false and null.{"myString": "I'm a string"}
.{"myNumber": 10.5}
. {"myObject": {"key": "value"}}
.{"myArray":["a_string", 3, true]}
.{"winner": true}
.{{ firstName }}
.{{ basket.orange }}
or square brackets like this: {{ basket["orange"] }}
When using square brackets, you need to wrap the key name with quotes ("basket" in our example), otherwise the engine interprets the key as a variable.{{ tags[0] }}
will print customer.{% if myCondition %} I'm in baby! {% endif %}
condition!{% elif condition %}
block and end them with {% else %}
.{%
for
item
in
items %} ... {% endfor %}
like this:{{ article.description|truncate(100) }}
will truncate a long text and append "..." at the end.