greater INDEX

> _ _ _ GREATER _ _ _ _ _ _ _ _ _ _ _ _ operator

The > is an infix binary comparison operator that returns true if its first argument is strictly greater than its second.

syntax:

<expression> > <expression>

<expression> must evaluate to a number, e.g., integer, rational or floating point number.

examples:


on rounded; 

if 3.0 > 3 then write "different" else write "same"; 


  same 


off rounded; 

a := 20; 

  A := 20 


if a > 20 then write "bigger" else write "not bigger"; 


  not bigger 

The binary comparison operators can only be used for comparisons b etween numbers or variables that evaluate to numbers. The truth values returned by such a comparison can only be used inside programming constructs, such as if...then...else or repeat...until or while...do.