title: Checking grains out of list with saltstack
body: <p>I want to check if a specific version of a program is already installed.
  Therefore, I got a state file:</p>
  
  <pre><code>{% set rvs = ['1113','1278'] %}
  
  {% for rv in rvs %}
  
  {% if ('r{{ rv }}' not in grains.get('cat12', [])) %}
  
  ... install it ...
  
  {% else %}
  
  ... do nothing ...
  
  {% endif %}
  
  {% endfor %}
  </code></pre>
  
  <p>In my grains I have:</p>
  
  <pre><code>cat12:
    - r1113
  </code></pre>
  
  <p>I would expect that '1278' is installed and list item '1113' triggers nothing, but even that is installed again...</p>