ge: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
m (Conversion script moved page Ge to ge: Converting page titles to lowercase)
No edit summary
 
Line 7: Line 7:


|usage=
|usage=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
ge(n1, n2, ...)
ge(n1, n2, ...)
</source>
</syntaxhighlight>
'''Parameters'''
'''Parameters'''
{{param|n1|Number}}
{{param|n1|Number}}
Line 15: Line 15:


|example=
|example=
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
[r: ge(2,-3)]
[r: ge(2,-3)]
[r: ge(4,3,2)]
[r: ge(4,3,2)]
[r: ge(5,1,1)]
[r: ge(5,1,1)]
</source>
</syntaxhighlight>
'''Returns:'''
'''Returns:'''
<source lang="mtmacro" line>
<syntaxhighlight lang="mtmacro" line>
1
1
1
1
1
1
</source>
</syntaxhighlight>


|also=
|also=

Latest revision as of 18:33, 14 March 2023

ge() Function

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

Usage

ge(n1, n2, ...)

Parameters

  • n1 - Number
  • n2+ - Number

Example

[r: ge(2,-3)]
[r: ge(4,3,2)]
[r: ge(5,1,1)]

Returns:

1
1
1

See Also