summaryrefslogtreecommitdiffstats
path: root/docs/content/en/functions/eq.md
blob: d10539e49e90c6fe8f5fd67e7d619a5aaadd52b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
---
title: eq
description: Returns the boolean truth of arg1 == arg2 || arg1 == arg3.
categories: [functions]
menu:
  docs:
    parent: functions
keywords: [comparison,operators,logic]
signature: ["eq ARG1 ARG2 [ARG...]"]
relatedfuncs: []
---

```go-html-template
{{ eq 1 1 }} → true
{{ eq 1 2 }} → false

{{ eq 1 1 1 }} → true
{{ eq 1 1 2 }} → true
{{ eq 1 2 1 }} → true
{{ eq 1 2 2 }} → false
```