lt

From RPTools Wiki
Revision as of 22:22, 22 May 2020 by Phergus (talk | contribs) (Created page with "{{MacroFunction |name=lt |proposed=false |trusted=false |description= This function compares provided numeric values and returns {{code|true(1)}} if the first is less than the...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

lt() Function

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

Usage

lt(n1, n2, ...)

Parameters

  • n1 - Number
  • n2+ - Number

Example

[r: lt(1,2)]
[r: lt(-1,1,2)]
[r: lt(0,1,1)]

Returns:

1
1
0

See Also