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



I think that's correct - here's the documentation -

/High: (54-55)/ Factor 1 is greater than factor 2. /Low: (56-57)/ Factor 1 is less than factor 2. /Equal: (58-59)/ Factor 1 equals factor 2.

The indicators are not combined - the 2 factor values are compared, and an indicator is set when certain conditions are seen.

So equivalent free-form code would be

if factor1 > factor2;
   *in10 = *on;
elseif factor1 < factor2;
   *in10 = *on;
elseif factor1 = factor2;
   *in20 = *on;
endif;

or to simplify as Mark suggests,

if factor1 <> factor2;
   *in10 = *on;
else;
   *in20 = *on;
endif;

I wonder if both indicators need to be reset before either code block above. When Craig Rutledge converts RPG IV to free, I think he does something like that - been awhile since looking.

Cheers
Vern

On 5/16/2020 8:12 PM, Mark Waterbury wrote:
Booth,

It means "not equal"  AFAIK.

Mark


On Saturday, May 16, 2020, 8:43:22 PM EDT, Booth Martin <booth@xxxxxxxxxxxx> wrote:
Looking at some old code, and it confuses me.  The reference manual left
me in doubt.

  C    A    COMP B                  101020

Is there a condition in which *in10 will be on?  In other words, can it
ever be that  A  COMP B is both Hi & Lo?  Or is that an OR condition?



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.