VTech Power Zone Plus Desktop User Manual page 39

User manual
Table of Contents

Advertisement

pots
erase
(er)
eraseall
(erall)
6. Flow control Commands
if <condition> then [commands] The <condition> must result in a value of either
if <condition> then [commands1] If <condition> is TRUE then the commands else
else [commands2]
label <label>
go
<label>
repeat<count> [commands] <count> must be an integer. The commands in
while <condition>[commands] <condition> must be TRUE or FALSE. If it is TRUE,
to
<name>
end
make
stop
print the titles of all you defined procedures. POTS
stands for "Print Out Titles".
n
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.
TRUE or FALSE. If the <condition> is TRUE then
the commands in [commands] are executed.
[commands2] in [commands1] are executed.
Otherwise the commands in [commands2] are
executed.
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.
<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>.
[commands] are executed <count> times. REPEAT
commands can be nested (i.e.: the [commands]
part may contain REPEAT commands).
the commands in [commands] are executed. If it
is still TRUE, the [commands] are executed again
and again until<condition> is FALSE.
<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.
This must be the last line in any new command
description.
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 makes Logo halt execution of the current
procedure and return to the calling procedure.
31

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Power Zone Plus Desktop and is the answer not in the manual?

Table of Contents