{{ with .Params.team }}
{{ if .enable }}
{{ range $person := .members }}
{{ $name,$role := $person.name,$person.role}}
Person is {{$name}} role is {{$role}}<br>
{{end}}
{{end}}
{{end}}
{{ with and .Params.team.enable .Params.team.members }}
{{ range . }}
Person is {{ .Name }} role is {{ .Role }}<br>
{{ end }}
{{ end }}
The and function…
Returns the boolean AND of its arguments by returning the first empty argument or the last argument, that is, “and x y” behaves as “if x then y else x”. All the arguments are evaluated.