Although my first language was BASIC on a TRS in 1980, my first college 
languages were Fortran and Pascal.
GOTOs were strictly forbidden at the risk of an "F"




-----Original Message-----
From: Laura Hirsh <la...@lhirsh.org>
To: 'U2 Users List' <u2-users@listserver.u2ug.org>
Sent: Fri, Apr 27, 2012 10:59 am
Subject: Re: [U2] The CONTINUE statement


OK. I'm going to come clean. At the cost of my reputation, and future
rojects. I LIKE GOTO! Sadly (for me), because all of the negative press
his four letter word receives I don't use it anymore. No need to comment,
r start a flame war, I just thought I'd fess up! :)
Laura Hirsh
-----Original Message-----
rom: u2-users-boun...@listserver.u2ug.org
mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
ent: Thursday, April 26, 2012 5:51 PM
o: U2 Users List
ubject: Re: [U2] The CONTINUE statement
Of course this breaks the "more than one exit point in a loop" rule, but
hen again,
  Who cares about that one, since were already breaking the pseudo goto
ule!!
-----Original Message-----
rom: u2-users-boun...@listserver.u2ug.org
mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of George Gallen
ent: Thursday, April 26, 2012 5:49 PM
o: U2 Users List
ubject: Re: [U2] The CONTINUE statement
No more like
FOR I=1 TO X 
  Do some stuff
  If condition1 THEN CONTINUE
  Do some more stuff
  If condition2 THEN CONTINUE
  Do a little more stuff
  If condition3 THEN CONTINUE
  Do the last part of the stuff
EXT I
-----Original Message-----
rom: u2-users-boun...@listserver.u2ug.org
mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Wjhonson
ent: Thursday, April 26, 2012 5:47 PM
o: u2-users@listserver.u2ug.org
ubject: Re: [U2] The CONTINUE statement

ou mean like
OR I = 1 TO X
  do something
  IF condition1 THEN CONTINUE
  IF condition2 THEN CONTINUE
  IF condition3 THEN CONTINUE
  do something else
EXT I

-----Original Message-----
rom: George Gallen <ggal...@wyanokegroup.com>
o: U2 Users List <u2-users@listserver.u2ug.org>
ent: Thu, Apr 26, 2012 2:44 pm
ubject: Re: [U2] The CONTINUE statement

f there is only one condition then that's ok (also, you will need to zero
he ondition
 Prior to do something, otherwise, it will function as an EXIT) But, if you
ave more than one place and/or condition in the loop that you want o jump
 To the next iteration, then I prefer to use CONTINUE.
esides, I don't like those NOT conditions, the positive condition test is
ore lear.
eorge
----Original Message-----
om: u2-users-boun...@listserver.u2ug.org
mailto:u2-users-boun...@listserver.u2ug.org]
 Behalf Of Wjhonson
nt: Thursday, April 26, 2012 5:12 PM
: u2-users@listserver.u2ug.org
bject: [U2] The CONTINUE statement
OR I = 1 TO X
 do something
 IF some condition THEN CONTINUE
 do something else
XT I
ersus
OR I = 1 TO X
 do something
 IF NOT(some condition) THEN
    do something else
XT I
_____________________________________________
-Users mailing list
-us...@listserver.u2ug.org
tp://listserver.u2ug.org/mailman/listinfo/u2-users
_____________________________________________
-Users mailing list
-us...@listserver.u2ug.org
tp://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
2-Users mailing list
2-us...@listserver.u2ug.org
ttp://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