I'm trying to write an if statement in a Jinja2 template:
let temp_html = `<div class="card">
<div class="card-body">
<blockquote class="blockquote mb-0">
<p>${comment}</p>
<footer class="blockquote-footer">${name}</footer>
{% if session['user_id'] == ? %}
<div class="modify">modify</div>
{% endif %}
</blockquote>
</div>
</div>`
=> in the ajax
I want to compare ${name} to session['user_id'] using the {% if ~ %} as I wrote.
How can I write ${name} in the 'if' statement within the Jinja2 template?
session['user_id'] ? 'if true' : 'if false'