Vtech Power Zone Plus Desktop User Manual - Page 39

LOGO. For example TO SQUARE : N would create, stands for Print Out Titles.

Page 39 highlights

pots erase (er) n eraseall (erall) print the titles of all you defined procedures. POTS stands for "Print Out Titles". remove the definition of its input from the workspace. The input to ERASE must be a procedure name. remove all procedures and variables from the workspace. 6. Flow control Commands if then [commands] The must result in a value of either TRUE or FALSE. If the is TRUE then the commands in [commands] are executed. if then [commands1] else [commands2] If is TRUE then the commands else [commands2] in [commands1] are executed. Otherwise the commands in [commands2] are executed. label This command marks a location in the application so execution of LOGO commands can be started or resumed at this point with a GO command. go must be a label defined elsewhere in the application with a LABEL command. The GO command causes command execution to jump to the location of the LABEL command with the corresponding . repeat [commands] must be an integer. The commands in [commands] are executed times. REPEAT commands can be nested (i.e.: the [commands] part may contain REPEAT commands). while [commands] 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 is FALSE. to 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. 31

  • 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
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54

31
pots
print the titles of all you defined procedures. POTS
stands for “Print Out Titles”.
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 application
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
application 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.
else [commands2]