title: How to check if string not equals a Boolean
body: <p>Hi guys I want to check if a User input(String) not equals to a Boolean but apparently can't do that:</p>
  
  <p>For example:</p>
  
  <pre><code>using System;
  using System.Linq;
  
  namespace SymbolCheck
  {
      class Program
      {
          static void Main(string[] args)
          {
              String symbol = Console.ReadLine();
              int value;
              bool isVowel = "aeiouAEIOU".IndexOf(symbol) &gt;= 0;
  
              if (int.TryParse(symbol, out value))
              {
                  Console.WriteLine("Input is a number: " + symbol);
              }
  
              else if (symbol.Equals(isVowel) &amp; symbol.Any(char.IsUpper))
              {
                  Console.WriteLine("Input is a uppercase vowel: "+ symbol);
              }
  
              else if (symbol != isVowel)
              {
                  Console.WriteLine("Input is a consonant: "+ symbol);
              }
  </code></pre>
  
  <p>....</p>
  
  <p>I got a way to get around it but want to know if there is another way of doing it: </p>
  
  <pre><code>    else if (symbol.Equals(isVowel) &amp; symbol.Any(char.IsLower))
      {
          Console.WriteLine("Input is a lowercase vowel: "+ symbol);
      }
  
      else if (!int.TryParse(symbol, out value) &amp; symbol.Any(char.IsUpper))
      {
          Console.WriteLine("Input is a uppercase consonant: " + symbol);
      }
  </code></pre>
  
  <p>...</p>