#for begins a C-style for loop.
#for accepts three or four comma-separated arguments:
Or simply: #for variable,start,end,step.
Numbers from 0 to 10:
#for i,0,10
${i}
#endfor
Perfect squares from 0 to 100:
#for i,1,100,i
${sqrt(i)} ^ 2 = ${i}
#endfor