title: Trying to shorten check conditions using or in ng-if directive. Comparing series value with multiple times as there are many values to check in or
body: <pre><code>&lt;img src="img/temp.png" class="img-responsive" ng-if="series === 'Temperature' || series === 'T' || series === 'Temperature-138828'"&gt;
  </code></pre>
  
  <p>I tried like this, but it didn't work:</p>
  
  <pre><code>&lt;img src="img/temp.png" class="img-responsive" ng-if="series === ('Temperature' || 'T' || 'Temperature-138828')"&gt;
  </code></pre>
  
  <p>Is there a way to shorten this <code>&lt;img&gt;</code> tag (such as to compare series with multiple values or something else?). I haven't used angularjs a lot, so any advice would be appreciated.</p>