Language statement REPEAT
If there is insufficient information on this page and you wish learn more about REPEAT, please send an email to firstname.lastname@example.org. You can help to improve information about REPEAT by submitting an article using the comments link below. Note, an offline language reference text file is now avialable – see the Download section.
SmallBasic starts executing the commands between the REPEAT and UNTIL commands. When SmallBasic encounters the UNTIL command, it evaluates the expression parameter. If that parameter is zero (false), the process will be repeated; otherwise, execution continues at the next command.
REPEAT/UNTIL loops may be nested to any level of complexity, but there must be an UNTIL for each REPEAT.
C=1 REPEAT PRINT C C=C+1 UNTIL C=10 ... ' This is the same with that FOR C=1 TO 9 PRINT C NEXT