GEQ INDEX

GEQ _ _ _ _ _ _ _ _ _ _ _ _ operator

The geq operator is a binary infix or prefix logical operator. It returns true if its first argument is greater than or equal to its second argument. As an infix operator it is identical with >=.

syntax:

geq(<expression>,<expression>) or <expression> geq <expression>

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

examples:


a := 20; 

  A := 20 


if geq(a,25) then write "big" else write "small";
			 


  small 


if a geq 20 then write "big" else write "small";
			 


  big  


if (a geq 18) then write "big" else write "small";
			 


  big

Logical operators can only be used in conditional statements such as

if...then...else or repeat...until.