le: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{MacroFunction |name=le |proposed=false |trusted=false |description= This function compares provided numeric values and returns {{code|true(1)}} if the first is less than or...") |
No edit summary |
||
Line 28: | Line 28: | ||
|also= | |also= | ||
[[ge|ge]] [[ | [[ge|ge]] [[lt|lt]] [[gt|gt]] | ||
}} | }} | ||
[[Category:Macro Function]] | [[Category:Macro Function]] | ||
[[Category:Mathematical Function]] | [[Category:Mathematical Function]] |
Revision as of 22:27, 22 May 2020
le() Function
This function compares provided numeric values and returns
true(1)
if the first is less than or equal to the second and the second less than or equal to the third and so on. If any comparison fails, the function returns false
.Usage
le(n1, n2, ...)
Parameters
n1
- Numbern2+
- Number
Example
[r: le(1,2)]
[r: le(-1,1,2)]
[r: le(0,1,1)]
Returns:
1
1
1