'Exit for .. next loop
include "$\inc\console.inc"
dim array[100]
for z = 1 to 3
for y = 1 to 10
For x=1 to 100
if x = 55 then goto 1200
array(x)=x
next x
1200: print x " "
if y = 5 then print cr: goto 1500
next y : print cr
1500: print y cr
for n = 1 to 100: print array[n] " ": next : print cr
next z : print cr
print x " " y " " z cr
waitkey()