title: How to check if an array contains a value stored in a variable
body: <p>I tried googling for the answer but at no avail. I'm new to coding  in general, c# in particular and I'm trying to get head of the game by practicing. </p>
  
  <p>So, what I am trying to do is to check if an array contains / has the same value that is stored in a variable previously declared. If it has, the code will do something, if it hasn't, the code will do something else altogether. What's the easiest way to accomplish what I want to do?</p>
  
  <p>Thank you very much.</p>