[Number] times: [Block] | Manual

[Number] times: [Block]

Runs the block of code a 'Number' of times. This is the most basic form of a loop.

 7 times: { :i Pen write: i. }.

 The example above runs the block 7 times. The current iteration
 number is passed to the block as a parameter (i in this example).

back to homepage
back to manual menu

This API reference guide has been generated automatically from source code comments using the shtml.ctr script.