{% for part in parts %} {% if part.variable %} {% else %} {{ part.text }} {% endif %} {% endfor %}