title: Run if statement in loop only once
body: <p>Just curious if its possible.
  Consider follwing code:</p>
  
  <pre><code>boolean firstRow = true;
  
  while{row = result.next())
  {
      if(firstRow)
      {
          firstRow = false;
          //do some setup 
      }
  
      //do stuff
  }
  </code></pre>
  
  <p>Its pseudo-code and question is general not about some specific programming language.</p>
  
  <p>My question: is it possible to write code that behaves exactly same but without using additional variable (in this case "firstRow"). In FOR loop its possible to check counter variable value but lets leave FOR loops out of this question.</p>