Do-Loop

Loop with a conditional exit. A Do-Loop is always entered and exited dependent on the loop end condition. Syntax:

Example 1

  Do
    Print "Hello"
  Loop

Example 2

  dim a as byte
  Do
    Incr a
  Loop Until a>10  ' Exit loop when a larger than 10