47 lines
1.5 KiB
HTML
47 lines
1.5 KiB
HTML
<HTML>
|
|
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
|
|
<BODY>
|
|
|
|
<A HREF="ng37efe.html">[<<Previous Entry]</A>
|
|
<A HREF="ng34ce6.html">[^^Up^^]</A>
|
|
[Next Entry>>]
|
|
<A HREF="menu.html" >[Menu]</A>
|
|
<A HREF="info.html">[About The Guide]</A>
|
|
<HR>
|
|
<PRE>
|
|
<B>IMP Implication</B>
|
|
|
|
<B>exp1 IMP exp2</B>
|
|
|
|
IMP 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 IMP exp2</U>
|
|
1 1 1
|
|
1 0 0
|
|
0 1 1
|
|
0 0 1
|
|
|
|
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="ng37c50.html">XOR</A>
|
|
<A HREF="ng37efe.html">EQV</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>
|