next
repeat
next
case
repeat 20 put random(9) into tempVar if tempVar mod 2 = 0 then next repeat put tempVar end repeat
switch x case 1 next case case 2 next case case 3 put "x is 1, 2, or 3" case 4 put "x is 4" next case put "this is never printed" case 5 put "x is 4 or 5" default put "x is something else" end switch
The next repeat
statement sends control to the top of the next iteration of the loop. Any statements not yet executed in the current iteration are ignored.
The next case
statement sends control to the next case
clause of a switch
structure, regardless of the value associated with the case
clause. Any statements not yet executed in the current case
are ignored.
If a next
statement is used outside its corresponding structure, a script error is triggered.
HyperTalk does not support switch
, therefore it does not support next case
.