Goo'day,

At 11:01 25/08/06 +0800, you wrote:

One way to break up a large condition is to do something like this...

COND1 = (condition1 OR condition2)
COND2 = (condition3 OR condition4)
COND3 = (condition5 AND condition6 AND condition7)
IF COND1 OR COND2 OR COND3 THEN...

You could make the variables COND1, COND2, etc. meaningful (like
AMOUNT.TOO.LARGE, OVER.LIMIT, WRONG.SUBURB).

Wouldn't this look much cleaner and neater (not to say more understandable) with CASE statements?


Regards,

Bruce Nichol
Talon Computer Services
ALBURY        NSW     2640
Australia

http://www.taloncs.com.au

Tel: +61 (0)411149636
Fax: +61 (0)260232119

If it ain't broke, fix it till it is!

--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.1.405 / Virus Database: 268.11.6/427 - Release Date: 24/08/06
-------
u2-users mailing list
u2-users@listserver.u2ug.org
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to