{% for i in set_list %}

{{ i[0] }} {{ i[1] }}
{{ i[3] }} ({{ i[2] }})

Parts: {{ i[4] }}
{% if i[0] in minifigs %}
{% endif %}

{% set ns = namespace(found=false) %} {% for file in files %} {% if ns.found is sameas false and file.startswith(i[0]) %} {% set ns.found = true %} {% endif %} {% endfor %}
{% endfor %}