to procedureName
When you create a procedure, the first line of the procedure must be
to procedureName where procedureName is a one-word
title for your procedure. procedureName cannot be any command
already recognized by StarLogo (this includes both built-in commands and the
procedure names of other procedures you may already have written).
Examples:
to go fd 1 rt 90 end
Now you may use go as a command in other parts of your program.
Related commands: end
|