{% for p in products %} {% if any p.a p.b p.c p.d p.e p.f p.g %}{% endif %} {% endfor %}