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