<A NAME=equalsign>
<TITLE>equalsign</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>=</B> _ _ _ <B>EQUALSIGN</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P>
<P>
The <em>=</em> operator is a prefix or infix equality comparison operator.
<P>
<P>
<P> <H3>
syntax: </H3>
<em>=</em>(<expression><em>,</em><expression>)
or
<expression> <em>=</em> <expression>
<P>
<P>
<P>
<expression> can be any REDUCE scalar expression.
<P>
<P>
<P> <H3>
examples: </H3>
<P><PRE><TT>
a := 4;
A := 4
if =(a,10) then write "yes" else write "no";
no
b := c;
B := C
if b = c then write "yes" else write "no";
yes
on rounded;
if 4.0 = 4 then write "yes" else write "no";
yes
</TT></PRE><P>This logical equality operator can only be used inside a condition
al
statement, such as
<A HREF=r37_0052.html>if</A>...<em>then</em>...<em>else</em>
or
<A HREF=r37_0056.html>repeat</A>...<em>until</em>. In other places the equal
sign establishes an algebraic object of type
<A HREF=r37_0045.html>equation</A>.
<P>
<P>
<P>
<P>