Current Page: NeXtMidas Training Macros - Part 1 (Basics) Loops and Control Structures Loops WHILE
- - | The `WHILE` Loop: A `WHILE` loop executes as long as a given test condition is true.
        WHILE <test condition>
          ...
        ENDWHILE
    For example:
        res index 1
        res count 10
        WHILE index LT count
          say "index is ^index"
          calc index index+1
        ENDWHILE
The test condition in `WHILE` allows the same tests that are used in `IF` See the `WHILE` explain file for more details.