I have to assign some variable depending on other variable and some conditions
I've tried to code this but with no luck
{{- $region_for_link := $region}}
{{- if eq $region "a"}} {{- $region_for_link := "AAA"}} {{- end}}
{{- if eq $region "b"}} {{- $region_for_link := "BBB"}} {{- end}}
I wanted to have value in $region_for_link
AAA
when $region
is a
, but after that $region_for_link
is still a
. How to code that properly, probably it is obvious case, but I can't get it.
Please help, I'm waiting for your answer
Best Regards