Gt()
Jump to navigation
Jump to search
Takes two integers, and returns a BOOLEAN (1 if and only if <integer1> is greater than <integer2>, and 0 otherwise).
Note: Passing anything but integers will produce unexpected results, as non-numeric strings usually are treated as numeric 0. |
Examples
> say gt(4,5)
You say "0"
> say gt(5,5)
You say "0"
> say gt(6,5)
You say "1"
> say gt(foo, bar)
You say "0"