mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-25 22:00:58 +02:00
Merge commit '3c1deaf201a35de08d23cc58f8f03682cace3349'
This commit is contained in:
@@ -1,16 +1,26 @@
|
||||
---
|
||||
title: ge
|
||||
description: Returns the boolean truth of arg1 >= arg2.
|
||||
description: Returns the boolean truth of arg1 >= arg2 && arg1 >= arg3.
|
||||
categories: [functions]
|
||||
menu:
|
||||
docs:
|
||||
parent: functions
|
||||
keywords: [operators,logic]
|
||||
signature: ["ge ARG1 ARG2"]
|
||||
keywords: [comparison,operators,logic]
|
||||
signature: ["ge ARG1 ARG2 [ARG...]"]
|
||||
relatedfuncs: []
|
||||
---
|
||||
|
||||
|
||||
```go-html-template
|
||||
{{ if ge 10 5 }}true{{ end }}
|
||||
{{ ge 1 1 }} → true
|
||||
{{ ge 1 2 }} → false
|
||||
{{ ge 2 1 }} → true
|
||||
|
||||
{{ ge 1 1 1 }} → true
|
||||
{{ ge 1 1 2 }} → false
|
||||
{{ ge 1 2 1 }} → false
|
||||
{{ ge 1 2 2 }} → false
|
||||
|
||||
{{ ge 2 1 1 }} → true
|
||||
{{ ge 2 1 2 }} → true
|
||||
{{ ge 2 2 1 }} → true
|
||||
```
|
||||
|
Reference in New Issue
Block a user