every
number [list of commands]
Parameters:
| number |
Number |
number of seconds to wait between each iteration |
| [list of commands] |
List of commands |
list of commands to run each iteration |
Description:
every is just like loop, in that it runs its [list of commands] forever, but it waits number seconds between each iteration. Number can be a decimal as well as an integer.
every is usually used in a non-forever button to run something over and over again with a pause in between.
Examples:
every 2 [fd 1 rt 90] would make all the turtles move forward one step, turn right 90 degrees, and then wait 2 seconds over and over again.