
32
if... then... else...
IF runs the instructions if the result of the
conditional statement (if … ) is TRUE. If the
conditional statement is FALSE, nothing is done
unless ELSE follows the instructions.
label...go
LABEL marks the beginning of a GO-LABEL
loop. Its input must match the input of the
corresponding GO command. Used in
conjunction with GO.
repeat:
REPEAT runs the list of instructions in the
second input the number of times indicated
by its first input. The number input to REPEAT
can be any positive number. If the number is
not an integer,its fractional portion is ignored.
REPEAT commands can be nested, or placed,
inside other REPEAT commands.
while:
WHILE evaluates its first input and runs the LOGO
command(s) in its second input if the value of
the first input is TRUE. WHILE will continue this
process until the value of the first input is
FALSE.
to... end
define function or procedure,then be called.
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.
LOGO BEGINNER
This activity contains LOGO sample program for beginners.
LOGO INTERMEDIATE
This activity contains LOGO sample program for intermediate level.
LOGO ADVANCED
This activity contains LOGO sample program for advanced level.
Untitled-3
10/16/01, 2:37 PM
32