While - Monarch 9460 Programmer's Manual

Adk printer
Hide thumbs Also See for 9460:
Table of Contents

Advertisement

W H I L E
Purpose
Repeats a sequence of commands as long as a condition is true.
Syntax

WHILE

.
.
.
ENDWHILE
Process
The WHILE command repeats a sequence of commands as long as a condition is
true.
If the condition is true, the script executes the commands listed between WHILE
and ENDWHILE. When script reaches ENDWHILE, it checks the condition again. If
the condition still exists, it executes the commands again. If the condition is false,
the script branches to the line after ENDWHILE.
Buffer-field1
be one of the following:
Comparison is the operator used to compare
be one of the following:
NOTE:
Use the BREAK command to break out of a WHILE loop prematurely. For example,
you could use it when an error occurs. Also, Do Not use WHILE inside a macro.
5-86 Command Reference
buffer-field1 comparison buffer-field2
buffer-field2
and
Buffer-field
INPUT
Logical Field Name
(TEMP1)
Logical Field Name (LU1)
Logical Field Name (PR1)
Number
String
Comparison
=
==
<>
!=
>
>=
<
<=
are the compared items in the condition. They can
Description
Input Buffer
Temporary Buffer
Field
Lookup Buffer Field
Printer Buffer Field
Number prefixed by a
number sign (#)
ASCII string delimited
by double quotes.
Must be one
character long
Description
Equals
Equals
Not equal
Not equal
Greater than
Greater than or equal
Less than
Less than or equal
buffer-field1
buffer-field2
and
. It can

Advertisement

Table of Contents
loading

Table of Contents