title: Syntax for checking multiple conditions in an 'if' statement
body: <p>This is situation:</p>
  
  <pre><code>if count items is either 0,1,5,7,8,9,10 then string = "string one"
  if count items is either 2,3,4 then string = "string two"
  </code></pre>
  
  <p>I tried with (inside cs razor view)</p>
  
  <pre><code>@if (@item.TotalImages == 1 || 5 || 7 || 8 || 9 || 10)
  {
     string mystring = "string one"
  }
  </code></pre>
  
  <p>but I'm getting this error</p>
  
  <blockquote>
    <p>operator || cannot be applied to operands of type bool or int</p>
  </blockquote>