× 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.



Scott,

>It's important to understand how expressions work in ILE RPG.
>Fortunately, they work the same way as they do in C, C++, Java, etc.  Once
>you've learned one of them, the others all fall into place. :)

Just to be pedantic, RPG is documented as using "short circuit expressions", so
it can be relied upon to act the way you described.  And while the same is true
of C, C++, and Java, it is not necessarily true of all languages.   That can
make things like:

  If index > 0 and array( index ) = "foobar" ..

fail with an array index error when "index" is 0 because without short
circuiting, it would still attempt to validate the second half. Thankfully RPG
does use short circuit expressions though...

Doug

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.