File r37/lisp/csl/html/r37_0025.html artifact a08873d8ae part of check-in a57e59ec0d



<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>(&lt;expression&gt;<em>,</em>&lt;expression&gt;) 
 or 
 &lt;expression&gt; <em>=</em> &lt;expression&gt; 
<P>
<P>
<P>
&lt;expression&gt; can be any REDUCE scalar expression. 
<P>
<P>
 <P> <H3> 
examples: </H3>
<P><PRE><TT>
a := 4; 

  A := 4 


if =(a,10) then write &quot;yes&quot; else write &quot;no&quot;;
 


  no 


b := c; 

  B := C 


if b = c then write &quot;yes&quot; else write &quot;no&quot;;
 


  yes 


on rounded; 

if 4.0 = 4 then write &quot;yes&quot; else write &quot;no&quot;;
 


  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>


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