compare.Ge
Reports whether the first argument is greater than or equal to all of the subsequent arguments.
- Syntax
- compare.Ge ARG1 ARG2 [ARG...]
- Returns
- bool
- Alias
- ge
Usage
The compare.Ge function reports whether the first argument is greater than or equal to all of the subsequent arguments. Numbers are compared by value, regardless of type. You can also use this function to compare strings, boolean values, dates, and other comparable data types.
Examples
{{ compare.Ge 1 1 }} → true
{{ compare.Ge 1 2 }} → false
{{ compare.Ge 2 1 }} → true
{{ compare.Ge 1 1 1 }} → true
{{ compare.Ge 1 1 2 }} → false
{{ compare.Ge 1 2 1 }} → false
{{ compare.Ge 1 2 2 }} → false
{{ compare.Ge 2 1 1 }} → true
{{ compare.Ge 2 1 2 }} → true
{{ compare.Ge 2 2 1 }} → trueComparing numbers of different types:
{{ compare.Ge 1 1.0 }} → trueComparing other data types:
{{ compare.Ge "ab" "a" }} → true
{{ compare.Ge time.Now (time.AsTime "1964-12-30") }} → true
{{ compare.Ge true false }} → trueLast updated:
September 16, 2026
:
content: Draft standard for function and method pages (9a554d1fe)
Improve this page