EQUAL INDEX

EQUAL _ _ _ _ _ _ _ _ _ _ _ _ operator

The operator equal is an infix binary comparison operator. It is identical with =. It returns true if its two arguments are equal.

syntax:

<expression> equal <expression>

Equality is given between floating point numbers and integers that have the same value.

examples:


on rounded; 

a := 4; 

  A := 4 


b := 4.0; 

  B := 4.0 


if a equal b then write "true" else write "false";
			 


  true 


if a equal 5 then write "true" else write "false";
			 


  false 


if a equal sqrt(16) then write "true" else write "false";
			 


  true

Comparison operators can only be used as conditions in conditional commands such as if...then and repeat...until. <equal> can also be used as a prefix operator. However, this use is not encouraged.