dos_compilers/Microsoft QuickBASIC v3/manual/ng37c50.html
2024-07-01 13:00:14 -07:00

47 lines
1.5 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng379af.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng34ce6.html">[^^Up^^]</A>
<A HREF="ng37efe.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>XOR Logical Exclusive OR</B>
<B>exp1 XOR exp2</B>
XOR is a logical operator. BASIC converts each operand to an integer
(each operand must yield an integer in the range -32768 to 32767, or
else an Overflow error occurs), then performs a bitwise comparison of
the results, according to the truth table below:
<U>exp1 exp2 exp1 XOR exp2</U>
1 1 0
1 0 1
0 1 1
0 0 0
The result is an integer.
<B> exp1</B>,<B>exp2</B> Any expression that produces a numeric result. This
includes Boolean expressions, where a TRUE result is
evaluated as -1 and a FALSE result is evaluated as 0.
</PRE>
<HR>
<B>See Also:</B>
<A HREF="ng37443.html">NOT</A>
<A HREF="ng3770a.html">AND</A>
<A HREF="ng379af.html">OR</A>
<A HREF="ng37efe.html">EQV</A>
<A HREF="ng381a3.html">IMP</A>
<A HREF="ng34f34.html">Precedence</A>
<HR>
This page created by ng2html v1.05, the Norton guide to HTML conversion utility.
Written by <A HREF="http://www.acemake.com/hagbard">Dave Pearson</A>
<HR>
</BODY>
</HTML>