EACH
Syntax EACH list
 
Explanation EACH causes each of the currently active turtles to execute the commands contained in its argument sequentially. This allows each of several turtles to be given a variable input or to be addressed by WHO or its current number.

See also ASK, SETTURTLES, TELL, and WHO.

 

Examples TO MANY.HEADINGS
     TELL [0 1 2 3 4 5 6 7] 
     PENDOWN ST 
     EACH [SETH 45 * WHO SETPC WHO FD 30] 
END


TopIndex