<A NAME=ORDP>
<TITLE>ORDP</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>ORDP</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P>
<P>
<P>
<P>
The <em>ordp</em> logical operator returns
<A HREF=r37_0122.html>true</A> if its first argument is
ordered ahead of its second argument in canonical internal ordering, or is
identical to it.
<P> <H3>
syntax: </H3>
<P>
<P>
<em>ordp</em>(<expression1>,<expression2>)
<P>
<P>
<P>
<P>
<expression1> and <expression2> can be any valid REDUCE scalar
expression.
<P>
<P>
<P> <H3>
examples: </H3>
<P><PRE><TT>
if ordp(x**2 + 1,x**3 + 3) then write "yes" else write "no";
no
if ordp(101,100) then write "yes" else write "no";
yes
if ordp(x,x) then write "yes" else write "no";
yes
</TT></PRE><P>Logical operators can only be used in conditional expressions, suc
h as
<P>
<P>
<em>if</em>...<em>then</em>...<em>else</em> and <em>while</em>...<em>do</em>.
<P>
<P>
<P>