Embedding basic conditional statements into an HTML template

In addition to embedding merge fields into an HTML template, you can also add simple control flow through if statements by embedding a tag into your document in the following format:

{% if [boolean condition] %}  
   text and/or field  
{% endif %}

For example, if you wanted to include the last field only if there was an object called names, you would embed the following into the body of your document in the Editor View panel:

<html>
{% if names %}  
   Last Name: {{name.last}}  
{% endif %}
</html>

To see conditional statements in action, check out how to build a full-featured HTML template.