PARAMETER
Syntax[edit]
PARAMETER variable,variable,variable...
Description[edit]
The PARAMETER command assigns values to variables in a procedure. Any number of values can be ‘passed’ to the procedure in this way. It is like performing a number of LET commands at once.
Example[edit]
First type in this procedure sum:
PARAMETER number1,number2,number3 PRINT "Add together "; PRINT number1;"+";number2;"+";number3 PRINT "= "; PRINT number1+number2+number3
Now from the main screen call the procedure by typing
sum 1,2,3 <Enter>
The screen will display
Add together 1+2+3 = 6