You are viewing an older version of the site. Click here to view
the latest version of this page. (This may be a dead link, if so, try the root page of the docs
here.)
== gte ==
[[../../Optimizer#CACHE_RETURN|CACHE_RETURN]] |} === Usages ===
Copy Code
The output would be:
Copy Code
The output would be:
Copy Code
The output would be:
Returns the result of a greater than or equal to operation. Operator sytnax is also supported: @a >= @b
=== Vital Info ===
{| style="width: 40%;" cellspacing="1" cellpadding="1" border="1" class="wikitable"
|-
! scope="col" width="20%" |
! scope="col" width="80%" |
|-
! scope="row" | Name
| gte
|-
! scope="row" | Returns
| boolean
|-
! scope="row" | Usages
| var1, var2
|-
! scope="row" | Throws
| [[../objects/ms.lang.CastException|ms.lang.CastException]]
|-
! scope="row" | Since
| 3.0.1
|-
! scope="row" | Restricted
| No
|-
! scope="row" | Optimizations
| [[../../Optimizer#CONSTANT_OFFLINE|CONSTANT_OFFLINE]] [[../../Optimizer#CACHE_RETURN|CACHE_RETURN]] |} === Usages ===
gte(var1, var2)=== Examples === ====Example 1==== Functional usage Given the following code:
gte(5, 4)

1 {{function|gte}}(5, 4)
:true====Example 2==== Operator syntax, true condition Given the following code:
4 >= 4

1 4 >= 4
:true====Example 3==== Operator syntax, false condition Given the following code:
4 >= 5

1 4 >= 5
:false===See Also===
[[API/functions/lt.html|lt]]
, [[API/functions/gt.html|gt]]
, [[API/functions/lte.html|lte]]
Find a bug in this page? Edit this page yourself, then submit a pull request. (Note this page is automatically generated from the documentation in the source code.)