I have {{get_url}} from context, and a JSON object (as dict).
All I want is when JSON.entry.counter == {{get_url}}, it should display JSON.entry.content
I have done this in the following way:
{% for aEntry in feed.entries %}
{% ifequal forloop.counter get_url %}
<p>{{aEntry.content}}</p>
{% endifequal %}
{% endfor %}
And this is not working.. I unable to equate..
what’s the error and how to fix it
You can use
{% if forloop.counter == get_url %}.But if your syntax is correct, and this is not working, I recommend checking if variables are correct with Django debug toolbar.