Vtech Power Zone 2000 User Manual - Page 40

Logo Beginner, Logo Intermediate, Logo Advanced

Page 40 highlights

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. 32

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47

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.