WHILE [ HP TRANSACT Quick Reference Guide ] MPE/iX 5.5 Documentation
HP TRANSACT Quick Reference Guide
WHILE
WHILE condition-clause statement;
CONDITION CLAUSE
test-variable relational-operator value[,value...][{AND|OR}...]
TEST VARIABLES
(item-name[(subscript)])
arithmetic-expression
EXCLAMATION - Status of automatic null response
FIELD - Status of the FIELD option
INPUT - Last value input to INPUT
PRINT - Status of PRINT option
REPEAT - Status of REPEAT option
SORT - Status of SORT option
STATUS - Value of STATUS register
RELATIONAL OPERATORS
=
<>
<
<=
>
>=
[REV BEG]
VALUES FOR ITEM NAME TEST VARIABLE
(item-name[(subscript)])
arithmetic-expression
"character-string"
class-condition
expression
number[REV END]
[REV BEG]
CLASS CONDITIONS WHEN RELATIONAL OPERATOR IS "=" OR "<>"
NUMERIC
ALPHABETIC
ALPHABETIC-LOWER
ALPHABETIC-UPPER[REV END]
[REV BEG]
VALUES FOR ARITHMETIC EXPRESSION TEST VARIABLE
(item-name[(subscript)])
arithmetic-expression
number[REV END]
[REV BEG]
VALUES FOR EXCLAMATION, FIELD, PRINT, REPEAT, SORT, STATUS TEST VARIABLES
arithmetic-expression
number[REV END]
[REV BEG]
VALUE FOR INPUT TEST VARIABLE
"character-string"[REV END]
Example
WHILE (A)>10 LET (A)=(A)/10;
MPE/iX 5.5 Documentation