title: Django if statement
body: <p>Is it possible to use this code</p>
  
  <pre><code>{% if item.status == "0" %}
                  &lt;td&gt;Pending&lt;/td&gt;
              {% else %}
                  &lt;td&gt;Approved&lt;/td&gt;
              {% endif %}
  </code></pre>
  
  <p>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?</p>
  
  <p>If yes then what is the correct syntax?</p>