Embedding basic conditional statements in an HTML template

In addition to adding data to 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.