title: Checking multiple conditions in a single If statement - C#
body: <p>I have a form in which there are many textBoxes from which three textboxes are required to fill in order to submit the form. I dont want to use each If block for each text box. Is there any way to use a single if statement for all the three text boxes? I am using the following code:</p>
  
  <pre><code>if (textBox1.Text != "" || textBox2.Text != "" || textBox4.Text != "")
  {
     // Code
  }
  else
  {
     MessageBox.Show("Fill required fields");
  }
  </code></pre>
  
  <p>but this code works even a single text fox is filled and the rest of the required text boxes are empty.</p>