|
This, to me, is getting convoluted. The negatives in the "not notvalid" make things complex... but that's still a relatively simple example. Even so, it's nicer to have something like this:
chain ItemNo ItemMaster;
if not %found;
Valid = *on;
endif;
. . . 100 lines of code . . .
if Valid;
// use item
endif;
The more positives in your logic, the easier it is to understand. There are certainly cases where negative logic is easy and not a problem.. but it should be tempered with judgement. If it looks too complex, the logic should be cleaned up a bit.
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.