Turtle, Observer, Patch

dotimes [:loop-variable #times] [commands to run]

Parameters:
[:loop-variable #times] List of commands On each iteration, :loop-variable is assigned to each number from 1 to #times
[commands to run] List of commands Commands to run once for each number from 1 to #times

Description:
This command loops over each integer number from 1 to #times, and runs [commands to run] for each one. During each run of [commands to run], the current number is bound to :loop-variable.

Examples:
dotimes [:foo 4] [show :foo] loops 4 times, each time assigning :foo to 1, 2, 3, and then 4. The commands that are run print the value of :foo to the command center.

Related Commands:
dolist