pTAL Reference Manual (H06.08+)

Statements
HP pTAL Reference Manual523746-006
12-45
USE
USE
The USE statement creates a temporary variable.
identifier
is the name of the temporary variable being created.
A temporary variable that the USE statement creates:
Is equivalent to a variable declared INT
Is usually kept in a register
Exists until either:
°
You drop it with the statement DROP on page 12-19 (recommended)
°
The procedure that creates it ends
WHILE
The WHILE statement is a pretest loop that repeatedly executes a statement while a
specified condition is true.
condition
is either:
A conditional expression
An INT, INT(32), or FIXED arithmetic expression. If the result of the arithmetic
expression is not 0, condition is true. If the result is 0, condition is false.
statement
is any pTAL statement.
The WHILE statement tests the condition before each iteration of the loop. If the
condition is false before the first iteration, the loop never executes.
USE
identifier
,
VST056.vsd
WHILE
condition
DO
statement
VST057.vsd