title: Is there any better way for comparing a string with multiple strings?
body: <p>I want to compare a string with multiple string.For ex</p>
  
  <pre><code>if([var isEqualToString:@"Box"]||[var isEqualToString:@"Ball"]|[varisEqualToString:@"Bat"])
  {
  some function
  }else{
  some function
  }
  </code></pre>
  
  <p>In my case I have to compare with 15 string, so I have to check for 15 times.Is there any other better way to compare it. Is there any small simple code will implement my logic.</p>