title: How do I search user input for specific characters?
body: <p>New to C#, but I love it! I used to use java and still do sometimes, but C# in Visual Studio is amazing.</p>
  
  <p>Now the business...</p>
  
  <p>I want to create a console application that prints messages to the console whenever the user inputs a sentence containing either a T, a t(lower case) or a question mark (?)</p>
  
  <p>I have tried the below, but I have not been successful. It must look like kindergarten scrawl to some of you. </p>
  
  <p>Someone please help me. I thank you in advance!</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          Console.WriteLine("Type a sentence without using the letter T or a question mark.");
          Console.ReadLine();
          string userValue;
          userValue = Console.ReadLine();
  
  
          if(userValue.Contains("T"))
          {
              Console.WriteLine("Invalid");
          }
          else if(userValue.Contains("t"))
          {
              Console.WriteLine("Invalid");
              Console.ReadLine();
          }
              else if (userValue.Contains("?"));
          {
          Console.WriteLine("Invalid");
          Console.ReadLine();
  </code></pre>