title: Jinja2 shorthand conditional
body: <p>Say I have this:</p>
  
  <pre><code>{% if files %}
      Update
  {% else %}
      Continue
  {% endif %}
  </code></pre>
  
  <p>In PHP, say, I can write a shorthand conditional, like:</p>
  
  <pre><code>&lt;?php echo $foo ? 'yes' : 'no'; ?&gt;
  </code></pre>
  
  <p>Is there then a way I can translate this to work in a jinja2 template:</p>
  
  <pre><code>'yes' if foo else 'no'
  </code></pre>