
EXPORT GETSIDES()
BEGIN
REPEAT
INPUT(SIDES,"Die Sides","N = ","Enter num sides",2);
UNTIL SIDES>0;
END;
BREAK
Syntax: BREAK(n)
Exits from loops by breaking out of n loop levels. Execution picks up with the rst statement after the loop.
With no argument, exits from a single loop.
CONTINUE
Syntax: CONTINUE
Transfers execution to the start of the next iteration of a loop
Variable
These commands enable you to control the visibility of a user-dened variable.
LOCAL
Syntax: LOCAL var1,var2,…varn;
Makes the variables var1, var2, etc. local to the program in which they are found.
EXPORT
Syntax: EXPORT var1, [var2, …, varn];
– or –
EXPORT var1:=val1, [var2:=val2, … varn:=valn];
Exports the variables var1, var2, etc. so they are globally available and appear on the User menu when you
press
and select .
Example:
EXPORT ratio:=0.15;
Function
These commands enable you to control the visibility of a user-dened function.
EXPORT
Syntax: EXPORT FunctionName(Parameters)
– or –
EXPORT FunctionName(Parameters)
588 Chapter 28 Programming in HP PPL
Komentarze do niniejszej Instrukcji