{% for note in notes %} {% if note[1] and note[2] %} {% endif %} {% endfor %}