title: twig if one is true and other is false
body: <p>In relation to this <a href="https://stackoverflow.com/questions/8319011/if-a-true-or-b-true-statement">question</a>.</p>
  
  <p>What do you do when a == true and b == false? This must be 
  Before down voting believe it or not but there's nothing to find on this. </p>
  
  <p>So:</p>
  
  <pre><code>{% if a == true and b == false %}
  do stuff
  {% endif %}
  </code></pre>
  
  <p>You should say that this should work but that isn't:</p>
  
  <pre><code>{% if (a == true) and (b == false) %}
  do stuff
  {% endif %}
  </code></pre>
  
  <p>UPDATE2
  This works because one is true and two is false</p>
  
  <pre><code>{% if variant.stock.track == true %} 
  {% if variant.stock.on_stock == false %}
    ({{ 'Out of stock' | t }}){% else %} ({{ 'In stock' | t }})
  {% endif %}
  {% endif %}
  </code></pre>