title: use boolean value for loop
body: <p>So technically a boolean is True (1) or False(0)...how can I use a boolean in a loop?</p>
  
  <p>so if FYEProcessing is False, run this loop one time, if FYEProcessing is true, run it twice:</p>
  
  <pre><code>for (Integer i=0; i&lt;FYEProcessing; ++i){
     CreatePaymentRecords(TermDates, FYEProcessing);      
  }
  </code></pre>