Differences

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

Link to this comparison view

repeat [2019/07/15 11:24]
neils created
repeat [2019/09/06 08: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]]''