exit more than one loop

BlitzMax Forums/BlitzMax Beginners Area/exit more than one loop

Robert Cummings(Posted 2005) [#1]
Hi,

I am aware that blitzmax lets you exit more than 1 nested loop using Exit, but when I looked at the docs, they are out of date.

What is the format for exiting more than one nested loop?

Thanks


Yan(Posted 2005) [#2]
Strict'er

#loopy
repeat
  for local x=0 until 10
    for local y=0 until 10
      print x + " : " + y
      if y = 5 then exit loopy
    next
  next
forever

'exit to here
end



Robert Cummings(Posted 2005) [#3]
Many thanks!