Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 7276
Chapter 2 Program Instructions
WHILE...WEND
Field of Application
 Statement for executing a series of statements in a loop providing 
a given condition is true.
Syntax WHILE <nexp>
 <stmt>
 [...<stmt>]
 WEND
<nexp> is a numeric expression that is either TRUE (-1) of FALSE 
(0).
<stmt> is a statement, or a list of statements on separate lines, that 
will be executed provided <nexp> is TRUE.
Remarks
 If <nexp> is TRUE, all following statements will be executed successively 
until a WEND statement is encountered. The program execution then 
goes back to the WHILE statement and repeats the process, provided 
<nexp> still is TRUE. 
 If  <nexp>  is  FALSE,  the  execution  resumes  at  the  statement  following 
the WEND statement.
 WHILE...WEND  statements  can  be  nested.  Each WEND  matches  the 
most recent WHILE statement.
Example
 In this example, the WHILE...WEND loop will only be executed if the character 
“Y” (ASCII 89 dec.) is entered on the keyboard of the host. 
  10    B%=0
  20   WHILE B%<>89
  30   INPUT "Want to exit? Press Y=Yes or N=No ",A$
  40   B%=ASC(A$)
  50   WEND
  60   PRINT "The answer is Yes"
  70   PRINT "You will exit the program"
  80   END
  RUN
  yields:
  Want to exit? Press Y=Yes or N=No N
  Want to exit? Press Y=Yes or N=No Y
  The answer is Yes
  You will exit the program










