Toshiba KB-80 Computer Keyboard User Manual


 
- 4 -
IF ~ THEN ~
ELSE
Format IF <expression> THEN <statement> [ELSE <statement> ]
<line number> <line number>
IF <expression> GOTO <line number> [ELSE <statement> ]
<line number>
Function Judges the condition, and changes the flow of the program.
FOR ~ NEXT Format FOR <variable> = <initial value> TO <terminal value> [STEP <increment> ]
NEXT [ <variable> [, <variable> ] ···]
Function Executes the statements included from the FOR statement to the NEXT
statement repeatedly while the given conditions are satisfied.
WHILE
~ WEND
Format WHILE <expression>
WEND
Function Repeats the statements included between the WHILE statement and the
WEND statement for as long as the given conditions are satisfied.
CHAIN Format CHAIN <file designation> [, ALL]
Function Executes another program.
COMMON Format COMMON <variable name> [, <variable name> ] ···
Function Declares the variable is to be passed from the original program to the
program called by the CHAIN statement.
Numeric process
Statement
ABS Format ABS ( <numeric expression> )
Function Provides the absolute value.
INT Format INT ( <numeric expression> )
Function Provides the max. integer value not exceeding the specified <numeric
expression>.
CINT Format CINT ( <numeric expression> )
Function Provides the integer value to which the real value is converted.
CSNG Format CSNG ( <numeric expression> )
Function Provides the value which is converted to the single-precision real value.
SGN Format SGN ( <numeric expression> )
Function Provides a sign for <numeric expression>.