dos_compilers/Microsoft QuickBASIC v3/manual/ng2265a.html

47 lines
1.6 KiB
HTML
Raw Normal View History

2024-07-01 22:00:14 +02:00
<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng22467.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng320.html">[^^Up^^]</A>
<A HREF="ng22914.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>OR Logical OR Operator</B>
<B>exp1 OR exp2</B>
OR 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</U><B> </B><U>exp2</U><B> </B><U>exp1 OR exp2</U>
1 1 1
1 0 1
0 1 1
0 0 0
The result is an integer.
<U>exp1</U>,<U>exp2</U> 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="ng5198.html">AND</A>
<A HREF="ngfc6d.html">EQV</A>
<A HREF="ng13f30.html">IMP</A>
<A HREF="ng1d3c8.html">NOT</A>
<A HREF="ng34a1f.html">XOR</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>