functions: Add all missing binary comparison operators

Fixes #91
This commit is contained in:
Cameron Moore
2017-07-26 16:33:12 -05:00
committed by Bjørn Erik Pedersen
parent fb7ae80aa3
commit d93f09926b
6 changed files with 126 additions and 1 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
---
title: eq
linktitle: eq
description: Returns true if the parameters are equal.
description: Returns the boolean truth of arg1 == arg2.
godocref:
date: 2017-02-01
publishdate: 2017-02-01
+25
View File
@@ -0,0 +1,25 @@
---
title: ge
linktitle: ge
description: Returns the boolean truth of arg1 >= arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
signature: ["ge ARG1 ARG2"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
```
{{ if ge 10 5 }}true{{ end }}
```
+25
View File
@@ -0,0 +1,25 @@
---
title: gt
linktitle: gt
description: Returns the boolean truth of arg1 > arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
signature: ["gt ARG1 ARG2"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
```
{{ if gt 10 5 }}true{{ end }}
```
+25
View File
@@ -0,0 +1,25 @@
---
title: le
linktitle: le
description: Returns the boolean truth of arg1 <= arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
signature: ["le ARG1 ARG2"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
```
{{ if le 5 10 }}true{{ end }}
```
+25
View File
@@ -0,0 +1,25 @@
---
title: lt
linktitle: lt
description: Returns the boolean truth of arg1 < arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
signature: ["lt ARG1 ARG2"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
```
{{ if lt 5 10 }}true{{ end }}
```
+25
View File
@@ -0,0 +1,25 @@
---
title: ne
linktitle: ne
description: Returns the boolean truth of arg1 != arg2.
godocref:
date: 2017-07-26
publishdate: 2017-07-26
lastmod: 2017-07-26
categories: [functions]
menu:
docs:
parent: "functions"
#tags: [operators,logic]
signature: ["ne ARG1 ARG2"]
workson: []
hugoversion:
relatedfuncs: []
deprecated: false
aliases: []
---
```
{{ if ne .Section "blog" }}current{{ end }}
```