Why the extra lines? Why not just
IF A = "TEST" THEN
gosub do.something
END ELSE
gosub do.something.else
END
<<<However, here is a form that's rarely used, but does work.
IF A = "TEST"
THEN ;* say why in a long-winded manner
GOSUB DO.SOMETHING
END
ELSE ;* the reasoning behind the reason
GOSUB DO.SOMETHING.ELSE
END>>>
-----Original Message-----
From: Keith Johnson [DATACOM] <[email protected]>
To: '[email protected]' <[email protected]>
Sent: Mon, Apr 23, 2012 5:44 pm
Subject: Re: [U2] Case Statement with only two cases... or for that matter...
one case
I prefer the layout of
IF A = "TEST"
THEN GOSUB DO.SOMETHING ;* Say why
ELSE GOSUB DO.SOMETHING.ELSE ;* The reason
However, here is a form that's rarely used, but does work.
IF A = "TEST"
THEN ;* say why in a long-winded manner
GOSUB DO.SOMETHING
END
ELSE ;* the reasoning behind the reason
GOSUB DO.SOMETHING.ELSE
END
I don't use it myself, but it's very amenable to cut and paste programming.
Regards, Keith
_______________________________________________
2-Users mailing list
[email protected]
ttp://listserver.u2ug.org/mailman/listinfo/u2-users
_______________________________________________
U2-Users mailing list
[email protected]
http://listserver.u2ug.org/mailman/listinfo/u2-users