Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -3,18 +3,14 @@ title: if
description: Executes the block if the expression is truthy.
categories: []
keywords: []
action:
aliases: []
related:
- functions/go-template/with
- functions/go-template/else
- functions/go-template/end
- functions/collections/IsSet
returnType:
signatures: [if EXPR]
params:
functions_and_methods:
aliases: []
returnType:
signatures: [if EXPR]
---
{{% include "functions/go-template/_common/truthy-falsy.md" %}}
{{% include "/_common/functions/truthy-falsy.md" %}}
```go-html-template
{{ $var := "foo" }}
@@ -49,6 +45,6 @@ Use `else if` to check multiple conditions:
{{ end }}
```
{{% include "functions/go-template/_common/text-template.md" %}}
{{% include "/_common/functions/go-template/text-template.md" %}}
[`else`]: /functions/go-template/else/