Continue

Befehl zum Fortsetzen einer Schleife mit der nächsten Iteration. Alle Befehle die im Schleifenkörper nach continue stehen werden übersprungen. Hierbei wird je nach Schleifentyp zur entsprechenden Schleifenbedingung gesprungen.

  • continue
for i=1 to 5
  if i=2 then
    continue  'springt zu "for .."
  end if
  print "i = ";str(i)
next
while i < 6
  i++
  if i=2 then
    continue  'springt zu "while .."
  end if
  print "i = ";str(i)
wend
do
  i++
  if i=2 then
    continue  'springt zu "loop .."
  end if
  print "i = ";str(i)
loop until i = 5