lt: Difference between revisions
Jump to navigation
Jump to search
Bubblobill (talk | contribs) m (added logical category) |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 7: | Line 7: | ||
|usage= | |usage= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
lt(n1, n2, ...) | lt(n1, n2, ...) | ||
</ | </syntaxhighlight> | ||
'''Parameters''' | '''Parameters''' | ||
{{param|n1|Number}} | {{param|n1|Number}} | ||
Line 15: | Line 15: | ||
|example= | |example= | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
[r: lt(1,2)] | [r: lt(1,2)] | ||
[r: lt(-1,1,2)] | [r: lt(-1,1,2)] | ||
[r: lt(0,1,1)] | [r: lt(0,1,1)] | ||
</ | </syntaxhighlight> | ||
'''Returns:''' | '''Returns:''' | ||
< | <syntaxhighlight lang="mtmacro" line> | ||
1 | 1 | ||
1 | 1 | ||
0 | 0 | ||
</ | </syntaxhighlight> | ||
|also= | |also= |
Latest revision as of 23:59, 15 March 2023
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
- Numbern2+
- Number
Example
[r: lt(1,2)]
[r: lt(-1,1,2)]
[r: lt(0,1,1)]
Returns:
1
1
0