06-22-2003, 10:12 PM
For those of us that prefer using the XOR operator, it comes as a shock when programming in another language that does not support this operator. Assuming that this language does have AND/OR/NOT operators, we can emulate an XOR as follows:
*****
Code:
´The following performs the same as: result = a XOR b
result = (a and not(b)) or (b and not(a))