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

47 lines
1.6 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng50f1.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng320.html">[^^Up^^]</A>
<A HREF="ng5456.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>AND Logical AND Operator</B>
<B>exp1 AND exp2</B>
AND 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 AND exp2</U>
1 1 1
1 0 0
0 1 0
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="ngfc6d.html">EQV</A>
<A HREF="ng13f30.html">IMP</A>
<A HREF="ng1d3c8.html">NOT</A>
<A HREF="ng2265a.html">OR</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>