title: Visual Studio If statement always going through
body: <p>For some reason the If statements are always going through no matter what I put. Even if i did things like True == False or 0 == 1 it still goes through. What I am trying to do is detect if the text is null and set it to - so it doesn't error.</p>
  
  <p>This is my code inside the button</p>
  
  <pre><code>private void SearchButton_Click(object sender, EventArgs e)
      {
          reg = String.IsNullOrWhiteSpace(RegText.Text);
          if (reg == true);
          {
              RegText.ResetText();
              RegText.AppendText("-");
          }
          model = String.IsNullOrWhiteSpace(ModelText.Text);
          if (model == true) ;
          {
              ModelText.ResetText();
              ModelText.AppendText("-");
          }
          for (int i = 0; i &lt; MaxCars; i++)
          {
  
              if (regos[i].Equals(Convert.ToString(RegText.Text)) || models[i].Equals(Convert.ToString(ModelText.Text)) || price[i] == Convert.ToInt32(PriceText.Text))
              {
                  Console.WriteLine(regos[i] + " " + models[i] + " " + price[i]);
              }
          }
      }
  </code></pre>