ask who instruction-list
Temporarily tells each element in the first input to run the instruction list. The first input can be the name(s) of one or many turtles or text box names. Ask does not change the current turtle or text box. The apostrophe can be used to ask a turtle to report something. Turtles have built-in state variables: pos, heading, color, size, pensize, and shape. New state variables can be assigned to turtles using turtlesown.
example
ask "t1 [cg]
ask [t1 t2] [fd 50]
ask [text1 text2] [ct]
ask "t1 [pos]
ask "text1 [selected]
See MW Vocabulary (in Resources) for links to other projects using this term.
© LCSI, reprinted with permission