File r37/lisp/csl/html/r37_0051.html artifact 9a1b7cb286 part of check-in a57e59ec0d



<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>&gt;</em>. 
 <P> <H3> 
syntax: </H3>
<P>
<P>
<em>greaterp</em>(&lt;expression&gt;,&lt;expression&gt;) or &lt;expression&gt; 
<em>greaterp</em> &lt;expression&gt; 
<P>
<P>
<P>
&lt;expression&gt; 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 &quot;big&quot; else write &quot;small&quot;;
			 


  small 


if a greaterp 20 then write &quot;big&quot; else write &quot;small&quot;;
			 


  small 


if (a greaterp 18) then write &quot;big&quot; else write &quot;small&quot;;
			 


  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>


REDUCE Historical
REDUCE Sourceforge Project | Historical SVN Repository | GitHub Mirror | SourceHut Mirror | NotABug Mirror | Chisel Mirror | Chisel RSS ]