For

The for statement allows you to loop from a starting number to an ending number inclusively or exclusively and forwards or backwards.

For ... thru

For thru or through allows you to loop from a starting number and loop to the ending number inclusively.

<for :="i from 0 thru 5">
  <p>{{$i}}</p>
</for>
<p>0</p>
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>
<p>5</p>

For ... to

For to allows you to loop from a starting number and loop to the ending number exclusively.

<for :="i from 0 to 5">
  <p>{{$i}}</p>
</for>
<p>0</p>
<p>1</p>
<p>2</p>
<p>3</p>
<p>4</p>