Typically called inside a {% for %} loop. Executes a block of code but only outputs the result if this is the first time it was called or if the previous call had a different result.
{% ifchanged %}...{% endifchanged %}
The ifchanged tag creates a new child scope.
Ifchanged
Copy