gt: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (added logical category)
m (Conversion script moved page gt to Gt without leaving a redirect: Converting page title to first-letter uppercase)
(No difference)

Revision as of 22:36, 9 February 2023

gt() Function

This function compares provided numeric values and returns true(1) if the first is greater than the second and the second greater than the third and so no. If any comparison fails, the function returns false.

Usage

gt(n1, n2, ...)

Parameters

  • n1 - Number
  • n2+ - Number

Example

[r: gt(2,1)]
[r: gt(2,1,0)]
[r: gt(2,1,1)]

Returns:

1
1
0

See Also