Repeat..until
From Wiki
Revision as of 10:07, 18 August 2005 by 80.222.152.154 (Talk)
Repeat..until
Flow Control
Synopsis
Repeat until
Description
Repeat is almost like while command. Repeat executes atleast ones the code inside it. while only gets executed if extension is NOT true.
Example
set %str Hello , #spc , World repeat set %str %str , ! str len %str until #strres >= 30 display ok %str halt
Its important, that you understand difference between this and while. See how the code gets executed in any situation atleast ones. This can be good if you need to do something like walking to some preset spot. You must walk atleast ones but if you are not in right position you repeat it untill its it becomes true.
See Also
while | for |
Main_Page | Documentation | Flow Control |