Specifications

31
erase (er) n remove the definition of its input from the workspace.
The input to ERASE must be a procedure name.
eraseall (erall) remove all procedures and variables from the workspace.
6. Flow control Commands
if <condition> then [commands] The <condition> must result in a value of either TRUE
or FALSE. If the <condition> is TRUE then the commands
in [commands] are executed.
if <condition> then [commands1] If <condition> is TRUE then the commands
else [commands2] in [commands1] are executed. Otherwise the commands
in [commands2] are executed.
label <label> This command marks a location in the program so execution
of LOGO commands can be started or resumed at this
point with a GO command.
go <label> <label> must be a label defined elsewhere in the program
with a LABEL command. The GO command causes
command execution to jump to the location of the LABEL
command with the corresponding <label>.
repeat <count> [commands] <count> must be an integer. The commands in [commands]
are executed <count> times. REPEAT commands can
be nested (i.e.: the [commands] part may contain REPEAT
commands).
while <condition> [commands] <condition> must be TRUE or FALSE. If it is TRUE, the
commands in [commands] are executed. If it is still TRUE,
the [commands] are executed again and again until
<condition> is FALSE.
to <name> <inputs> This is the command to create a new command in
LOGO. For example “TO SQUARE :N” would create
a new command called SQUARE with one input.
end This must be the last line in any new command description.
make MAKE defines a variable using the name of the first
input and assigns the second input as the value of that
variable. Once you have created the variable, you can
get its contents by using :name. Think of the colon (:)
as “the value of name”.
stop STOP makes Logo halt execution of the current procedure
and return to the calling procedure.
output (op) make its input the output of the procedure. OUTPUT
can only be used within a procedure. After the object
of OUTPUT is run, control returns to the calling procedure
or to toplevel.
LOGO BEGINNER
This activity contains sample programs for beginners.
LOGO INTERMEDIATE
This activity contains intermediate level sample programs.
34200Manual 2/28/00, 10:01 AM31