Back to Chezmoi

`eqFold` *string1* *string2* [*extraString*...]

assets/chezmoi.io/docs/reference/templates/functions/eqFold.md

2.70.2464 B
Original Source

eqFold string1 string2 [extraString...]

eqFold returns the boolean truth of comparing string1 with string2 and any number of extraStrings under Unicode case-folding.

!!! example

```
{{ $commandOutput := output "path/to/output-FOO.sh" }}
{{ if eqFold "foo" $commandOutput }}
# $commandOutput is "foo"/"Foo"/"FOO"...
{{ else if eqFold "bar" $commandOutput }}
# $commandOutput is "bar"/"Bar"/"BAR"...
{{ end }}
```