title: How to use logic operators in jinja template on salt-stack (AND, OR)
body: <p>I am using a jinja template to generate a state file for salt. I added some conditionals and would like to express:
  <code>if A or B</code>. However, it seems I cannot get any logical operator working.</p>
  
  <p>It doesn't like <code>||, |, &amp;&amp;</code>(which I understand doesn't apply here), but also not <code>and, or</code> and not even grouping with <code>()</code>, which should be working according to the <a href="http://jinja.pocoo.org/docs/2.9/templates/#logic" rel="noreferrer">jinja documentation</a>. I couldn't find any information on this in the salt docs, but I feel I must be making some stupid mistake?</p>
  
  <p>My code:</p>
  
  <pre><code>{% if grains['configvar'] == 'value' OR grains['configvar'] == 'some other value' %}
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>Data failed to compile:
  Rendering SLS 'base:mystate' failed: Jinja syntax error: expected token 'end of statement block', got 'OR'; line 3
  </code></pre>