le: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
le(n1, n2, ...) | le(n1, n2, ...) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|n1|Number}} | {{param|n1|Number}} | ||
Line 15: | Line 15: | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: le(1,2)] | [r: le(1,2)] | ||
[r: le(-1,1,2)] | [r: le(-1,1,2)] | ||
[r: le(0,1,1)] | [r: le(0,1,1)] | ||
</ | </syntaxhighlight> | ||
'''Returns:''' | '''Returns:''' | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
1 | 1 | ||
1 | 1 | ||
1 | 1 | ||
</ | </syntaxhighlight> | ||
|also= | |also= |
Revision as of 17:43, 15 March 2023
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