Vtech Power Zone Plus Desktop User Manual - Page 38

Logical Commands, Other Commands, save the contents of the workspace to a file

Page 38 highlights

firstput lastput (fput) m n (lput) m n 4. Logical Commands and m n not n or m n 5. Other Commands edit n load n save n open n close n print n type n thing n pause wait n readchar (rc) readword (rw) readlist (rl) cleartext (ct) output an object which is created by putting the first input at the beginning of the second input. output a new object which is created by placing the first input at the end of the second input. accept one or more inputs which must be either TRUE or FALSE. output TRUE if inputs true; otherwise, output FALSE. output TRUE if input false; otherwise, output FALSE. output FALSE if all of its inputs are false; otherwise, it outputs TRUE. OR accepts one or more inputs which must be either TRUE or FALSE. enter the Logo editor and open an edit window. transfers the contents of the file specified by its input from the disk to the workspace. save the contents of the workspace to a file on the disk. open a device. If the specified file or device does not exist, OPEN outputs FALSE. close a device. print its inputs to the output stream. print its inputs on-screen, and the prompt appears after the last character printed. output the value associated with the variable named in the input. temporarily halt the execution of a procedure. insert a pause before the next instruction is run. The length of the pause is the input to WAIT times 1/20 of a second. output the first character from the input stream. If no character is waiting to be read, READCHAR waits for input from the keyboard. output in the form of a word from the input stream. If no line is waiting to be read, READWORD waits for input from the keyboard. output in the form of a list from the input stream. If no line is waiting to be read, READLIST waits for input from the keyboard. clear output window content. 30

  • 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

30
firstput
(fput)
m n
output an object which is created by putting the
first input at the beginning of the second input.
lastput
(lput)
m n
output a new object which is created by placing
the first input at the end of the second input.
4. Logical Commands
and
m n
accept one or more inputs which must be either
TRUE or FALSE. output TRUE if inputs true;
otherwise, output FALSE.
not
n
output TRUE if input false; otherwise, output
FALSE.
or
m n
output FALSE if all of its inputs are false; otherwise,
it outputs TRUE. OR accepts one or more inputs
which must be either TRUE or FALSE.
5. Other Commands
edit
n
enter the Logo editor and open an edit window.
load
n
transfers the contents of the file specified by its
input from the disk to the workspace.
save
n
save the contents of the workspace to a file on
the disk.
open
n
open a device. If the specified file or device does
not exist, OPEN outputs FALSE.
close
n
close a device.
print
n
print its inputs to the output stream.
type
n
print its inputs on-screen, and the prompt appears
after the last character printed.
thing
n
output the value associated with the variable
named in the input.
pause
temporarily halt the execution of a procedure.
wait
n
insert a pause before the next instruction is run.
The length of the pause is the input to WAIT times
1/20 of a second.
readchar
(rc)
output the first character from the input stream.
If no character is waiting to be read, READCHAR
waits for input from the keyboard.
readword
(rw)
output in the form of a word from the input
stream. If no line is waiting to be read, READWORD
waits for input from the keyboard.
readlist
(rl)
output in the form of a list from the input stream.
If no line is waiting to be read, READLIST waits
for input from the keyboard.
cleartext
(ct)
clear output window content.