ASK
Syntax ASK number list 
ASK list list
 
Explanation

ASK causes the turtle(s) named in its first argument to execute the commands in its second argument. ASK makes it possible to send commands to a turtle that is not currently active without making it one of the active turtles.

The first argument to ask can be either a single turtle number or a list of turtle numbers. To ASK a turtle, it must be defined with the SETTURTLES command. The input may also be any visible Logo component like windows, bitmaps, or buttons. Even normal Logo names may be ASKed, but they do not understand movement commands. You can, however, ASK any Logo name to set a property or to return a property. The following commands have the same meaning:
 

ASK "JOE [MAKE "AGE 45]
ASK JOE [:AGE]
PPROP "JOE "AGE 45
GPROP "JOE "AGE

(Some Logo names may contain procedures which only they know. A bitmap knows, for example, the procedure LOAD. If a bitmap is ASKed to run LOAD, it loads a picture from a file into itself.)

See also EACH, TELL, TURTLES, and WHO.
 



Examples See below.

TopIndex