0
I’m starting web development using Python and Flask, I am trying to change the class of a TAG but analyzing the value I am going through to be reinderized follows below how I am doing to try to use an IF ELSE to according to the result print on the screen a specific tag
{% if {{df.11}} = 1 %}
<i class="bi bi-emoji-sunglasses"></i>
{% else %}
<i class="bi bi-emoji-dizzy"></i>
{% endif %}
this field will contain only 2 values 1 and 200, if it is 1 the tag will be printed otherwise the other, but when I try to run I have the following error message:
File "C:\Users\Public\Documents\Python\02-database-manager\templates\stage.html", line 43, in template {% if {{df.11}} %}:
You could post how you are passing the variable to the template?
– Danizavtz