Artifact 9a1b7cb286758a435508986602b4d3624e9c8bb2926a6b066c62dafe7e5d7c89:
- Executable file
r37/lisp/csl/html/r37_0051.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: 1248) [annotate] [blame] [check-ins using] [more...]
<A NAME=GREATERP> <TITLE>GREATERP</TITLE></A> <b><a href=r37_idx.html>INDEX</a></b><p><p> <B>GREATERP</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P> <P> The <em>greaterp</em> logical operator returns true if its first argument is strictly greater than its second argument. As an infix operator it is identical with <em>></em>. <P> <H3> syntax: </H3> <P> <P> <em>greaterp</em>(<expression>,<expression>) or <expression> <em>greaterp</em> <expression> <P> <P> <P> <expression> can be any valid REDUCE expression that evaluates to a number. <P> <P> <P> <H3> examples: </H3> <P><PRE><TT> a := 20; A := 20 if greaterp(a,25) then write "big" else write "small"; small if a greaterp 20 then write "big" else write "small"; small if (a greaterp 18) then write "big" else write "small"; big </TT></PRE><P>Logical operators can only be used in conditional statements such as <P> <P> <A HREF=r37_0052.html>if</A>...<em>then</em>...<em>else</em> or <A HREF=r37_0056.html>repeat</A>... <A HREF=r37_0228.html>while</A>. <P> <P> <P>