{% for item in list if item % 2 == 0 %} {{ item }} {% endfor %}