|
-----Message d'origine-----
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Colpaert, Peter
If you comment out the first condition, it will fail because
of the AND on the second line.
I would put every condition or operator on its own line:
If (
Condition1
And
Condition2
);
-----Message d'origine-----
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Terrence Enger
If you introduce a tautology, you can handle condition_1 the
same way as later conditions
if ( 1=1
and condition_1
and condition_2
);
-----Message d'origine-----
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de Charles Wilt
Consider moving the tests into a procedure?
if SomeBusinessCondition(fld1:fld2)
endif;
You code is much more self-documenting and thus maintainable this way.
Plus you can easily reuse the logic by moving the procedure
into a service program.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.