Warning

You're browsing the old v2.x documentation. This version is no longer maintained. Click here to go the v3.x documentation.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

repeat [2019/07/15 10:24] – created neilsrepeat [2019/09/06 07:03] (current) neils
Line 10: Line 10:
      
 The ''REPEAT'' command starts a **post-test loop**. The statements in the loop will be run at least once. If the condition in the ''UNTIL'' statement evaluates to true, the loop exits. The ''REPEAT'' command starts a **post-test loop**. The statements in the loop will be run at least once. If the condition in the ''UNTIL'' statement evaluates to true, the loop exits.
 +
 +Contrarily to the ''[[fornext|FOR ... NEXT]]'' loop, it is allowed to escape from the ''REPEAT'' loop using the ''[[goto|]]'' command.
  
 **Note**: for a **pre-test loop** construct, see ''[[while|WHILE ... ENDWHILE]]'' **Note**: for a **pre-test loop** construct, see ''[[while|WHILE ... ENDWHILE]]''