Artifact 05460fa4e7ed059e81423b9712b53f6d828f627f47b01a479ab1ba8f9ae33fdc:
- Executable file
r37/lisp/csl/html/r37_0120.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 1108) [annotate] [blame] [check-ins using] [more...]
<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>