Files
harbour-core/tests/exit.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

25 lines
326 B
Plaintext

// quick exit test
PROCEDURE Main()
LOCAL x := 0
DO WHILE x < 10
++x
IF x == 5
EXIT
ENDIF
ENDDO
? "do exit test", iif( x == 5, "passed", "fail" )
FOR x := 1 TO 10
IF x == 5
EXIT
ENDIF
NEXT
? "for exit test", iif( x == 5, "passed", "fail" )
RETURN