{{ $visible := "none" }} {{ $covid := "false" }} {{ $price := "false" }} {{ $contact := "false" }} {{ $registeremail := "false" }} {{ if .visible }} {{ $visible = split .visible "," }} {{ range $visible }} {{ if eq . "covid" }} {{ $covid = "true" }} {{ end }} {{ if eq . "price" }} {{ $price = "true" }} {{ end }} {{ if eq . "contact" }} {{ $contact = "true" }} {{ end }} {{ if eq . "registeremail" }} {{ $registeremail = "true" }} {{ end }} {{ if eq . "all" }} {{ $contact = "true" }} {{ $price = "true" }} {{ $covid = "true" }} {{ $registeremail = "true" }} {{ end }} {{ end }} {{ end }}