You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Loop property length does not work in 2.7.3 and 2.8dev0 version with if filter
In 2.7.3 does not work when the results of if filter > 1 elements
In 2.8dev0 does not work when the results of if filter == 1 element
test template:
{% set numberList = [0,10,20,30,40,50,60,70,80,90] %}
{% for number in numberList %}
{% if loop.first %}
length {{ loop.length }} revindex {{ loop.revindex }}
{% endif %}
{{ loop.index }} => {{ number }}
{% endfor %}
{% for number in numberList if number < 50 %}
{% if loop.first %}
length {{ loop.length }} revindex {{ loop.revindex }}
{% endif %}
{{ loop.index }} => {{ number }}
{% endfor %}
{% for number in numberList if number < 10 %}
{% if loop.first %}
length {{ loop.length }} revindex {{ loop.revindex }}
{% endif %}
{{ loop.index }} => {{ number }}
{% endfor %}
Loop property length does not work in 2.7.3 and 2.8dev0 version with if filter
In 2.7.3 does not work when the results of if filter > 1 elements
In 2.8dev0 does not work when the results of if filter == 1 element
test template:
results 2.7.3
result 2.8dev0
The text was updated successfully, but these errors were encountered: