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

46 lines
1.7 KiB
HTML

<HTML>
<HEAD><TITLE>QuickBASIC 3.0 - Long Entry</TITLE></HEAD>
<BODY>
<A HREF="ng364e2.html">[&lt;&lt;Previous Entry]</A>
<A HREF="ng34ce6.html">[^^Up^^]</A>
<A HREF="ng36c71.html">[Next Entry&gt;&gt;]</A>
<A HREF="menu.html" >[Menu]</A>
<A HREF="info.html">[About The Guide]</A>
<HR>
<PRE>
<B>&gt; Greater than</B>
<B>exp1 &gt; exp2</B>
The &gt; operator is a relational operator. If the value of <U>exp1</U> is
greater than that of <U>exp2</U>, the result of <U>exp1</U> &gt; <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="ng36c71.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>