Maybe I'm completely misunderstanding, but have you tried
{% if x == 1 %}
{% for i in r %}
{% endfor %}
{% endif %}
If possible, it's best to test for your exclusion before stepping into the loop. Of course, you could test variables while inside the loop, but if you don't need the rest of the loop, it's best to let the server work on helping customers instead
User | Count |
---|---|
25 | |
20 | |
15 | |
9 | |
8 |