The case statement has a huge advantage in what really matters... human readability... that is the point.
>From readability follows... reliability, maintainability, and testability... >better, cleaner, safer software. An irony is that while the "if" statement... is the cornerstone of all computing... the "if" is also a problematic and mostly obsolete construct. --Bill -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Wjhonson Sent: Thursday, April 19, 2012 3:52 PM To: [email protected] Subject: [U2] Case Statement with only two cases 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 [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
