I agree, though I don't see anything inherently more clear using one method over the other. I will say, however, that the "IF" statement seems "cleaner", if that makes any sense.
I wonder if the origin of the "two case" CASE was the opposite of this, in that it started with multiple cases, and was eventually whittled down to two. Drew -----Original Message----- From: u2-users-boun...@listserver.u2ug.org [mailto:u2-users-boun...@listserver.u2ug.org] On Behalf Of Colwell, Kim Sent: Thursday, April 19, 2012 3:56 PM To: U2 Users List Subject: Re: [U2] Case Statement with only two cases Makes FUTURE maintenance MUCH easier if you want to add 1 or 2 or 5 more cases .... On Thu, Apr 19, 2012 at 2:52 PM, Wjhonson <wjhon...@aol.com> wrote: > > Is there a point in code like this > > BEGIN CASE > CASE A = "TEST"; GOSUB DO.SOMETHING > CASE 1; GOSUB DO.SOMETHING.ELSE > END CASE > > versus this > > IF A = "TEST" THEN GOSUB DO.SOMETHING ELSE GOSUB DO.SOMETHING.ELSE > > Personally I see no advantage in making this a CASE > > Does the rest of the *Universe* agree with me? > _______________________________________________ > U2-Users mailing list > U2-Users@listserver.u2ug.org > http://listserver.u2ug.org/mailman/listinfo/u2-users > -- Kim Colwell x769 _______________________________________________ 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