AKD BASIC User Guide | 6 AKD BASIC Parameters, Operators, Statements
6.1.22 While...Wend
General Information
Type Statement
Description
Executes a series of lines for as long as the condition after the WHILE is True.
Units N/A
Range N/A
Default
Value
N/A
Data Type N/A
Start Version TBD
Description
Executes a series of lines for as long as the condition after the WHILE is True. While...wend
statements may be nested. Each Wend is matched to the most recent While. Unmatched
While or Wend statements cause compile time errors.
Example
DRV.TIME = 0
While DRV.TIME < 5
MOVE.DIR = DIN1.STATE : MOVE.GOVEL
Wend
MOVE.ABORT
Related Topics
Exit | For...Next
Kollmorgenâ„¢ | March 30, 2012 120