I'm getting a problem while comparing two string in python:

this is working:

{% for publication in publications %}
        {{ publications[publication].pub_type }}
{% endfor %}

but not this:

{% for publication in publications %}
        {% if publications[publication].pub_type equals "conference_paper" %} 
             class="active" 
         {% endif %}
{% endfor %}

In the above code, I'm just testing something, but its not working

I'm getting this error:

jinja2.exceptions.TemplateSyntaxError
TemplateSyntaxError: expected token 'end of statement block', got 'equals'
Edit
Report