Hi there,

although this might have been answered several times, I hope you won't mind 
me asking:

{% set count = 0 %}
{% for i in range(10) %}
{% set count = count + 1 %}
{% endfor %}

{{ count }}
{# Display's 0. #}

Why is this not working? I am aware that the loop variable could be used to 
achieve this, but
what if the counter I have is conditional, i.e. incremented only if a 
certain condition is true.

-- 
You received this message because you are subscribed to the Google Groups 
"pocoo-libs" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pocoo-libs/-/DxQlJvz4VX4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pocoo-libs?hl=en.

Reply via email to