{% if loop is defined and loop.index0 > 0 %} {% else %}
{% endif %} {% if loop is defined and not loop.last %} {% else %}
{% endif %}