Home · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z · Numbers & Symbols

The Compleat User RPL Encyclopedia


(“Greater Than”)

       x y    0 or 1
     #a #b    0 or 1
"string" "string"    0 or 1       
'expr' 'expr'    0 or 1   
x_unit y_unit    0 or 1   
Keyboard Access:
  HP-28: the > key
  HP48S: [alpha] RS-2
         PRG TEST NXT
  HP48G: [alpha] RS-2
         PRG TEST
HP49/50: RS-[1/X]
         ALPHA-RS-[1/X]
         LS-PRG TEST
         «TESTS»
Greater Than function: Tests whether the level 2 object is greater than the level 1 object.

The  function follows the “0 if false, 1 if true” rule. It is intended for use in program branching, but it can be used inside algebraic objects for “conditional calculations” without any program branching required.

Examples:

    0 (false, because 5 is not > 9)
    0 (false, because 5 is not > 5)
    1 (true, because 5 > 2)
 returns A if C≤D, or A+B if C>D.
    same as above.
    same as above (because  automatically does ).
HP49G bug:     0 (should be )
This bug is not present in the HP49G+ or HP50G.

HP49/50 maximum integer inputs: no limit.

BYTES: 2.5