collections.In
Reports whether a value exists within the given slice or string.
- Syntax
- collections.In SLICE|STRING VALUE
- Returns
- bool
- Alias
- in
{{ $s := slice "a" "b" "c" }}
{{ in $s "b" }} → true{{ $s := "abc" }}
{{ in $s "b" }} → trueLast updated:
October 10, 2026
:
theme: Migrate aliases to a redirects data file (b732eba6c)
Improve this page