LESSP INDEX

LESSP _ _ _ _ _ _ _ _ _ _ _ _ operator

The lessp operator is a binary infix or prefix logical operator. It returns true if its first argument is strictly less than its s econd argument. As an infix operator it is identical with <.

syntax:

lessp(<expression>,<expression>) or <expression> lessp <expression>

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

examples:


a := 15; 

  A := 15 


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


  yes 


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


  no 


if lessp(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.