title: When does the while loop check for its condition
body: <p>Hi I have something like:
  Version 1:</p>
  
  <pre><code>bool noErrors = true;
  while(noErrors)
  {
     noErrors = ValidateControl(txtName);
  
     // other code
  }
  </code></pre>
  
  <p>Version 2:</p>
  
  <pre><code>bool noErrors = true;
  while(noErrors)
  {
     if(!ValidateControl(txtName)) break;
  
     // other code
  }
  </code></pre>
  
  <p>I use this code to validate a form and if the validation returns false, I want to break before executing "other code". Since I do not know when the loop checks for its condition, I do not know which makes more sense. Should I use the first or the second version, or maybe a third one?</p>
  
  <p>Thank you for your time</p>