{% for metaDict, imagePath, setkey in datasetList %} {% if imagePath == firstPath %} {% else %} {% endif %} {% endfor %}