Commands under the Tmplt menu
Block
BEGIN END
RETURN
KILL
Branch
IF THEN
IF THEN ELSE
CASE
Programming
The block commands determine the beginning and end of
a sub-routine or function. There is also a Return
command to recall results from sub-routines or functions.
Syntax: BEGIN stmt1;stm2;...stmtN; END;
Defines a command or set of commands to be executed
together. In the simple program:
EXPORT SQM1(X)
BEGIN
RETURN X^2-1;
END;
the block is the single RETURN command.
If you entered SQM1(8) in Home view, the result returned
would be 63.
Syntax: RETURN expression;
Returns the current value of expression.
Syntax: KILL;
Stops the step-by-step execution of the current program
(with debug).
In what follows, the plural word commands refers to both
a single command or a set of commands.
Syntax: IF test THEN commands END;
Evaluate test. If test is true (not 0), execute commands.
Otherwise, nothing happens.
Syntax: IF test THEN commands1 ELSE commands 2
END;
Evaluate test. If test is true (non 0), execute commands 1,
otherwise, execute commands 2
Syntax:
CASE
465