Code: Select all
Repeat
  i + 1
  If i = 5
    Continue
  EndIf
Until i = 5 Or i = 10
Debug iCode: Select all
Repeat
  i + 1
  If i = 5
    Continue
  EndIf
Until i = 5 Or i = 10
Debug i
Code: Select all
Repeat 
  i + 1 
  If i = 5 Or i=7
    Continue 
  EndIf
  Debug "bla="+Str(i) 
Until i = 10 
Debug i
Code: Select all
...go directly to the next iteration No, CONTINUE directly jumps back to the beginning of a loop. So the code I quoted works fine.Kaeru Gaman wrote:skipping the rest of the current iteration does not mean skipping the end-condition.Code: Select all
Repeat i + 1 If i = 5 Or i=7 Continue EndIf Debug "bla="+Str(i) Until i = 10 Debug i
Code: Select all
onErrorGoto(?Fred)
no, it just don't, and i have stated more than one reason why.AND51 wrote:No, CONTINUE directly jumps back to the beginning of a loop...
Code: Select all
Repeat 
  i + 1 
  If i = 5 
    Continue 
  EndIf 
Until i = 5 Or i = 10 
Debug iCode: Select all
Repeat
begin: 
  i + 1 
  If i = 5 
    Goto begin 
  EndIf 
Until i = 5 Or i = 10 
Debug i
