title: How can I show array results using jQuery conditional statement?
body: <p>I am trying to pull store locations using conditional statements. When I search for Dealer, Wholesale, or retail respectively from select option menu, the results are displayed. However, I cannot display all the location if All is selected.  If I remove <strong>&amp;&amp;(locationData['category']=== 'Dealer' || 'Wholesale' ||'Retail')</strong>, I can show All the locations, but I can't display store locations based on each category. How can I set up a conditional statement?</p>
  
  <p>This is what I have in HTML:</p>
  
  <pre><code>&lt;select id="category" name="category"&gt;
      &lt;option value="" selected&gt;All&lt;/option&gt;
      &lt;option value="Dealer"&gt;Wholesale &amp;amp;Retail&lt;/option&gt;
      &lt;option value="Wholesale"&gt;Wholesale&lt;/option&gt;
      &lt;option value="Retail"&gt;Retail&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>This is what I have in js</p>
  
  <pre><code>if(settings.maxDistance === true &amp;&amp; firstRun !== true){ 
      if((locationData['distance'] &lt; maxDistance)&amp;&amp;(locationData['category']=== 'Dealer' || 'Wholesale' ||'Retail')) {
         locationset[i] = locationData;
      } else {
         return;
       }
      } else {
         locationset[i] = locationData;
      }
      i++;
      });
  }
  </code></pre>