ROPE Language Reference - "gt"

"gt" stands for "Greater Than".

"gt" takes two items from the stack, compares them and pushes back 1 if the first is greater than the second - or 0 if the first is less or equal to the second.

It is an error to compare two values of different types: either both must integers or both must be strings.

10 20 gt println         # -- prints 0
10 10 gt println         # -- prints 0
20 10 gt println         # -- prints 1

See Also

le ge