<A NAME=LEQ>
<TITLE>LEQ</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>LEQ</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P>
<P>
The <em>leq</em> operator is a binary infix or prefix logical operator. It
returns
<A HREF=r37_0122.html>true</A> if its first argument is less than or equal to it
s second
argument. As an infix operator it is identical with <em><=</em>.
<P> <H3>
syntax: </H3>
<P>
<P>
<em>leq</em>(<expression>,<expression>) or <expression>
<em>leq</em> <expression>
<P>
<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 := 15;
A := 15
if leq(a,25) then write "yes" else write "no";
yes
if leq(a,15) then write "yes" else write "no";
yes
if leq(a,5) then write "yes" else write "no";
no
</TT></PRE><P>Logical operators can only be used in conditional statements such
as
<P>
<P>
<em>if</em>...<em>then</em>...<em>else</em> or <em>while</em>...<em>do</em>.
<P>
<P>
<P>