If there is only one condition then that's ok (also, you will need to zero the 
condition
   Prior to do something, otherwise, it will function as an EXIT)

But, if you have more than one place and/or condition in the loop that you want 
to jump
   To the next iteration, then I prefer to use CONTINUE.

Besides, I don't like those NOT conditions, the positive condition test is more 
clear.

George

-----Original Message-----
From: u2-users-boun...@listserver.u2ug.org 
[mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
Sent: Thursday, April 26, 2012 5:12 PM
To: u2-users@listserver.u2ug.org
Subject: [U2] The CONTINUE statement


FOR I = 1 TO X
   do something
   IF some condition THEN CONTINUE
   do something else
NEXT I

versus

FOR I = 1 TO X
   do something
   IF NOT(some condition) THEN
      do something else
NEXT I
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to