Here's an alternative to GOTO to exit a loop:
 Code:
; permanent loop with conditional exit
$Tag = 1
While $Tag     ; Loop forever while Tag is true
  ; do stuff here...
  If <EXIT CONDITION TEST>  ; if some condition exists where we should exit
    $Tag = 0
  EndIf
Loop
Tag represents a TRUE condition upon entry to the loop, but can be set to FALSE within the loop by any number of tests and conditons. Another common condition - perform a loop until any of several conditions exist.. simply add multiple exit condition tests. Any that sets Tag to false will cause an exit from the loop.

If you need to test for exit conditions at the top of the loop, simply move the tests to the top, and enclose your code in If $Tag / EndIf. The exit status will be tested upon entry, and the code executed only if Tag is true.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D