Skip to content

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 }}