title: How do you compare a single string to a string array
body: <pre><code>string name;
  strarray[] = ["Jack", "Tom" , "Jill"]
  
  if(name == strarray)
  {
      //implementation here
  }
  </code></pre>
  
  <p>How do I make this comparison work</p>
  
  <p>I am getting an error here because one is a string and one is an array string.</p>