title: Shopify(Liquid) multiple conditions in if statement
body: <p>I am looping through all collections, and creating a preview item with each collection title, image and link. But I have 15 collections I would like to exclude.</p>
  
  <p>Currently I am using 'contains' to exclude the 15 I don't want, but am wondering if theres a cleaner way to write this since its a really long if condition.</p>
  
  <p>Thanks in advance!</p>
  
  <p>Example below:</p>
  
  <pre><code>{% for collection in collections %}
      {% if collection.title contains 'collection-1' or collection.title 
      contains 'collection-2' or collection.title contains 'collection-3' 
      or collection.title contains 'collection-4' or collection.title 
      contains 'collection-5' %}
  
      {% else %}
  
          // build item here
  
      {% endif %}
  {% endfor %}
  </code></pre>