'if' statement in jinja2 template
<p>I'm trying to write an if statement in <a href="https://jinja.palletsprojects.com/en/2.11.x/" rel="noreferrer">jinja template</a>:</p>
<pre><code>{% for key in data %}
    {% if key is 'priority' %}
        &lt;p&gt;('Priority: ' + str(data[key])&lt;/p&gt;
    {% endif %}
{% endfor %}
</code></pre>
<p>the statement I'm trying to translate in Python is:</p>
<pre><code>if key == priority:
    print(print('Priority: ' + str(data[key]))
</code></pre>
<p>This is the error i'm getting:</p>
<blockquote>
<p>TemplateSyntaxError: expected token 'name', got 'string'</p>
</blockquote>