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



Steve,

I am pretty sure that the two statements below are identical.  According to
operator precedence AND is performed before the OR.  Therefore, your
parentheses that force the AND to be performed before the OR results in the
same expression as if the parentheses are left out.  After having said that,
I would definitely code the expression below with the parentheses to make
sure and to make the code more readable.  Or refactor it such as you did.

Scott Mildenberger

> -----Original Message-----
> From: Steve Landess [mailto:steve_landess@hotmail.com]
> Sent: Monday, December 02, 2002 5:34 PM
> To: rpg400-l@midrange.com
> Subject: Re: notted boolean expressions (was: output specs and
> indicators)
>
> You CANNOT express it like this:
> IF  NOT *IN01 AND *IN02  OR  NOT *IN01 AND *IN03  OR  NOT
> *IN01 AND *IN04...
>
> Upon conversion, this would have have to be expressed as
> IF (NOT *IN01 AND *IN02) OR  (NOT *IN01 AND *IN03) OR  (NOT
> *IN01 AND *IN04)
> ....


As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.