well one way to find out is to try it!
i tried it out and as you can see, using exit only exits out of the current loop... (if it exited out of both then "finalx" would be equal to 42)
for x = 1 to 1000
for y = 1 to 50
if x = 42
finaly = y
finalx = x
exit
endif
next y
finalx = x
next x
do
text 20, 30, "finaly: " + str$(finaly)
text 20, 50, "finalx: " + str$(finalx)
loop
to exit out of both... you'd have to do something really weird like this...
for x = 1 to 1000
for y = 1 to 50
if x = 42
finaly = y
finalx = x
exit
endif
next y
if x = 42 then exit REM added this line
finalx = x
next x
do
text 20, 30, "finaly: " + str$(finaly)
text 20, 50, "finalx: " + str$(finalx)
loop
or another option would be to put the for-next loops in a function by themselves, then to exit both of them you could just use "exitfunction"
--Peter
"We make the worst games in the universe..."