== {% for block in blocks %} {% if block == 'A' or block == 'B' %} {% endif %} {% endfor %}