Is it possible to use this code
{% if item.status == "0" %}
<td>Pending</td>
{% else %}
<td>Approved</td>
{% endif %}
if the item.status is an integer?
It seems to never go into the if statement and prints else all the time
Should i declare the variable first? eg something = item.status?
If yes then what is the correct syntax?
Remove the quotes around the 0 and it looks like it should work. See here