[Mumps2Py:] [42] test file demonstrating post-conditionals and the quit statement within a nested infinite loop .

[ Thread Index | Date Index | More lists.mumps2py.org/discuss Archives ]


Revision: 42
Author:   pgallot
Date:     2008-01-21 20:33:39 +0000 (Mon, 21 Jan 2008)

Log Message:
-----------
test file demonstrating post-conditionals and the quit statement within a nested infinite loop.

Added Paths:
-----------
    trunk/testfiles/for_quit_postconditionals.mps


Added: trunk/testfiles/for_quit_postconditionals.mps
===================================================================
--- trunk/testfiles/for_quit_postconditionals.mps	                        (rev 0)
+++ trunk/testfiles/for_quit_postconditionals.mps	2008-01-21 20:33:39 UTC (rev 42)
@@ -0,0 +1,7 @@
+ S g="Good morning, Dave."
+ S lgh=$L(g)/2
+ For i=1:1:$L(g) DO
+ . W !
+ . W:i<lgh $E(g,i)
+ . W:i=lgh $A($E(g,i))
+ . QUIT:i>lgh


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/