Debian Codegraph @

docs/content/en/functions/compare/Ge.md

raw
1 ---
2 title: compare.Ge
3 description: Returns the boolean truth of arg1 >= arg2 && arg1 >= arg3.
4 categories: []
5 keywords: []
6 params:
7 functions_and_methods:
8 aliases: [ge]
9 returnType: bool
10 signatures: ['compare.Ge ARG1 ARG2 [ARG...]']
11 aliases: [/functions/ge]
12 ---
13
14 ```go-html-template
15 {{ ge 1 1 }} → true
16 {{ ge 1 2 }} → false
17 {{ ge 2 1 }} → true
18
19 {{ ge 1 1 1 }} → true
20 {{ ge 1 1 2 }} → false
21 {{ ge 1 2 1 }} → false
22 {{ ge 1 2 2 }} → false
23
24 {{ ge 2 1 1 }} → true
25 {{ ge 2 1 2 }} → true
26 {{ ge 2 2 1 }} → true
27 ```
28
29 Use the `compare.Ge` function to compare other data types as well:
30
31 ```go-html-template
32 {{ ge "ab" "a" }} → true
33 {{ ge time.Now (time.AsTime "1964-12-30") }} → true
34 {{ ge true false }} → true
35 ```