Do
Do / Until (Opdracht)
Formaat
do
(tab)opdracht(en)
until booleaanse_uitdrukking
Beschrijving
Voert de opdracht(en) in de do-lus uit tot de booleaanse_uitdrukking waar is. Do / Until voert de opdrachten één of meer keer uit. De test gebeurt telkens nadat de code in de lus uitgevoerd is.
Voorbeeld
t = 1
do
print t
t = t + 1
until t > 5
toont
1
2
3
4
5
Zie ook
Begin Case / Case / End Case, Call, Continue Do, Continue For, Continue While, Do / Until, End, Exit Do, Exit For, Exit While, For / Next, For Each / Next, Function, Global, Goto, Gosub, If Then, Pause, Ref, Rem, Return, Subroutine, While / End While
Geschiedenis
| 0.9.4g | Nieuw in deze versie |