dos_compilers/Microsoft QuickBASIC v3/manual/ng36c71.html

47 lines
1.7 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="ng368a7.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng34ce6.html">[^^Up^^]</A>
<A HREF="ng3706a.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>&lt;= Less than or Equal to</B>
<B>exp1 &lt;= exp2</B>
The &lt;= operator is a relational operator. If the value of <U>exp1</U> is
either less than that of <U>exp2</U> or equal to that of <U>exp2</U>, the result of
<U>exp1</U> &lt;= <U>exp2</U> is -1; otherwise the result is 0. In IF statements, BASIC
regards 0 as equivalent to FALSE and all nonzero values as equivalent
to TRUE.
If the operands are string expressions, BASIC compares the ASCII
values of the first character in each expression. If the first
characters have the same ASCII value, BASIC then evaluates the second
characters, and so on. If one string terminates before the other, and
the characters in each string are identical to that point, the shorter
string is considered "less" than the longer one.
<B>exp1</B>,<B>exp2</B> Any numeric or string expression, but <U>exp1</U> and <U>exp2</U> must
either both be numeric or both be strings; otherwise a
Type Mismatch error occurs.
</PRE>
<HR>
<B>See Also:</B>
<A HREF="ng35ee9.html">=</A>
<A HREF="ng362a8.html"><></A>
<A HREF="ng364e2.html"><</A>
<A HREF="ng368a7.html">></A>
<A HREF="ng3706a.html">>=</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>