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



Mark,

It's ugly but:

x=0
if (test1) then x=x+1
if (test2) then x=x+1
if (test3) then x=x+1
...
if x=1 then true else false

-Walden

-----Original Message-----
From: owner-midrange-l@midrange.com
[mailto:owner-midrange-l@midrange.com]On Behalf Of Mark Lazarus
Sent: Wednesday, March 25, 1998 3:36 PM
To: MIDRANGE-L@midrange.com
Subject: Re: Exclusive-or (was: Re: Biton/Bitoff)


Hans,

At 09:16 AM 3/19/98 -0500, you wrote:

>However, if you want to do exclusive-or in a conditional expression,
>you can use the <> operator.  For example, the <> in the following
>statement acts just like exclusive-or:
>
>        IF               (A<17) <> (B=10)
>
>That is, the condition is true only if the results of (A<17) and (B=10),
>are not the same.

 How would you deal with additional condition groups, where you wanted the
expression to be true when only one out of n expressions is true?

 Will XOR make it as an opcode?

 -mark

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


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.