LEQ INDEX

LEQ _ _ _ _ _ _ _ _ _ _ _ _ operator

The leq operator is a binary infix or prefix logical operator. It returns true if its first argument is less than or equal to it s second argument. As an infix operator it is identical with <=.

syntax:

leq(<expression>,<expression>) or <expression> leq <expression>

<expression> can be any valid REDUCE expression that evaluates to a number.

examples:


a := 15; 

  A := 15 


if leq(a,25) then write "yes" else write "no";
			 


  yes 


if leq(a,15) then write "yes" else write "no";
			 


  yes 


if leq(a,5) then write "yes" else write "no";
			 


  no

Logical operators can only be used in conditional statements such as

if...then...else or while...do.