title: Create a loop to be performed up to a certain point
body: <p>I have this little snippet of code</p>
  
  <pre><code>for (var m=number_of_days;m&gt;number_of_days-3;m--) 
                {
                 ...
                }
  </code></pre>
  
  <p>Essentially I need it to count back and loop through 3 times. However there are conditions where number_of_days =1 or 2. In which case I need the loop to execute only 1 or 2 times.</p>