Question

Why does this:

{% if forlooop.counter == 2 %} 
   second thing 
{% else %} 
   first thing
{% endif %} 

Always show first thing, even in when there are three objects in the forloop?

Thanks for your ideas!

Was it helpful?

Solution

I think you add another 'o' in forloop, it should be

{% if forloop.counter == 2 %}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top