GREATERP _ _ _ _ _ _ _ _ _ _ _ _ operator
The greaterp logical operator returns true if its first argument is strictly greater than its second argument. As an infix operator it is identical with >.
greaterp(<expression>,<expression>) or <expression> greaterp <expression>
<expression> can be any valid REDUCE expression that evaluates to a number.
a := 20; A := 20 if greaterp(a,25) then write "big" else write "small"; small if a greaterp 20 then write "big" else write "small"; small if (a greaterp 18) then write "big" else write "small"; big
Logical operators can only be used in conditional statements such as
if...then...else or repeat... while.