NEQ INDEX

NEQ _ _ _ _ _ _ _ _ _ _ _ _ operator

The operator neq is an infix binary comparison operator. It returns true if its two arguments are not equal.

syntax:

<expression> neq <expression>

An inequality is satisfied 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 neq b then write "true" else write "false";
			 


  false 


if a neq 5 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. <neq> can also be used as a prefix operator. However, this use is not encouraged.