AMOSi:Exit If
an example can be found on AMOSPro_Examples:Examples/H-1/Help_12.AMOS
Exits from a program loop if the condition is TRUE. Allowable loop types include DO..LOOP, FOR..NEXT and REPEAT..UNTIL.
Exit If condition
Exit if condition,loopnumbers