× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Technically, there isn't a problem in this instance...as long as the
compiler does short circuit evaluations...

But IMO, it's a "best practice" if you will to have the check for
*NOPASS parms explicitly set working copies of the data that are then
used in the actual business logic.

Thanks, Charles. That's what I usually do since I rarely refer to a
parameter only one time, and I prefer not to repeat testing things like
%Parms. Besides, the copied-value method can be so much clearer.

D myFlagParm

D myFlagDefault
D myFlag

If %Parms > n ;
myFlag = myFlagParm ;
else
myFlag = myFlagDefault ;
Endif ;


Dennis Lovelady
http://www.linkedin.com/in/dennislovelady
--
"A fanatic is one who can't change his mind and won't change the subject."
-- Winston Churchill


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.