TELLALL
Syntax TELLALL number number 
 
Explanation TELLALL activates a range of turtles to respond to turtle commands. TELLALL takes two numbers as arguments. The first number is the number of the first turtle in the range to be activated. The second number is the last turtle in the range to be activated. Use TELL to activate a single turtle or a list of turtles.

Additional commands that activate a range of turtles are TELLEVEN and TELLODD. EVERY "TURTLE reports a list of all available turtles.

Before turtles may be activated, they must be defined by the SETTURTLES command. The default number of turtles available when Logo starts is 16 (turtle.0 through turtle.15).

After startup or after execution of a SETTURTLES command, turtle 0 becomes the active turtle.

See also ASK, EACH, TURTLES, and WHO.

Examples This procedure tells the turtles to set their color to the same value as their turtle number. They then move apart in different directions.

TO MANY.HEADINGS
     TELLALL 0 7 

     PENDOWN ST 
     EACH [SETH 45 * WHO SETPC WHO FD 30]
END


TopIndex