title: Can I use a variable in a switch statement?
body: <p>I am coding a text based adventure, and am having a problem. I am trying to make a switch statement case that handles every examination action you want, and am getting this for my code so far:</p>
  
  <pre><code>case "examine" + string x:
      //this is a method that I made that makes sure that it is an object in the area
      bool iseobj = tut.Check(x);
      if (iseobj)
          x.examine();
      else
          Console.WriteLine("That isn't an object to examine");
      break;
  </code></pre>
  
  <p>How do I use a variable in my <code>case</code> statement? I want any string starting with "examine" + (x) to trigger the case.</p>