equalsign INDEX

= _ _ _ EQUALSIGN _ _ _ _ _ _ _ _ _ _ _ _ operator

The = operator is a prefix or infix equality comparison operator.

syntax:

=(<expression>,<expression>) or <expression> = <expression>

<expression> can be any REDUCE scalar expression.

examples:


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

This logical equality operator can only be used inside a condition al statement, such as if...then...else or repeat...until. In other places the equal sign establishes an algebraic object of type equation.