Vtech Power Zone Plus Desktop User Manual - Page 39
LOGO. For example TO SQUARE : N would create, stands for Print Out Titles.
View all Vtech Power Zone Plus Desktop manuals
Add to My Manuals
Save this manual to your list of manuals |
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