PC Logo Wiki
Advertisement

Syntax

TELL number or list

Explanation

TELL activates the turtles that respond to turtle commands. A single number as an argument to TELL activates that single turtle. A list of numbers activates all the turtles named in the list. Use TELLALL to activate a range of turtles.

Before turtles can 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.

Example

TO MANY.HEADINGS

TELL [0 1 2 3 4 5 6 7]
PENDOWN ST
EACH [SETH 45 * WHO SETPC WHO FD 30]

END

This procedure causes eight turtles to change theirs color to the same value as their turtle number. They then move apart in different directions.

Pc logo 77

This is a result of the procedure.

Advertisement