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



Bob Cozzi wrote:
> 
> Alan,
> I like that style but hadn't done it before because I only code the
> fully-free format style when I write C/C++ code.
> In RPG IV I prefer to use parens to help with the clarity, but again, I like
> your suggestion too.
> 

You can indent logical expressions like that in fixed-form IF too.

     C                   if         cotsz1 >= '0'
     C                                 and %scan('AN':COAT1) = 0
     C                              or size <= '00014'
     C                                 and %scan('X':size) = 0
     C                                 and %scan('S':size) = 0
     C                              or size <= SZDIA1
     C                              or  cotsz2 <= COTSZ1
     C                                 and cotsz2 > '0'
     C                                 and %scan('B':size) = 0
     C                              or UTS >= 820000
     C                              or WGT <= 0
     C                              or UTS < YTS
     C                              or %scan('NOMAT':desc) > 0
     C                                 and %scan('BX':size) = 0


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.