title: c#: can you use a boolean predicate as the parameter to an if statement?
body: <p>In C#, can you use a boolean predicate on its own as the parameter for an if statement?</p>
  
  <p>eg:</p>
  
  <pre><code>string str = "HELLO";
  if (str.Equals("HELLO"))
  {
      Console.WriteLine("HELLO");
  }
  </code></pre>
  
  <p>Will this code output "HELLO", or does it need to be:</p>
  
  <pre><code>string str = "HELLO";
  if (str.Equals("HELLO") == true)
  {
      Console.WriteLine("HELLO");
  }
  </code></pre>
  
  <p>If there is anything else wrong with the above code segments, please point it out.</p>
  
  <p>EDIT: double equals as per answers</p>