47 lines
1.7 KiB
HTML
47 lines
1.7 KiB
HTML
<HTML>
|
|
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
|
|
<BODY>
|
|
|
|
<A HREF="ng368a7.html">[<<Previous Entry]</A>
|
|
<A HREF="ng34ce6.html">[^^Up^^]</A>
|
|
<A HREF="ng3706a.html">[Next Entry>>]</A>
|
|
<A HREF="menu.html" >[Menu]</A>
|
|
<A HREF="info.html">[About The Guide]</A>
|
|
<HR>
|
|
<PRE>
|
|
<B><= Less than or Equal to</B>
|
|
|
|
<B>exp1 <= exp2</B>
|
|
|
|
The <= 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> <= <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>
|