{{ with $newmap := .}} {{ with $products := activeProducts }} {{ range $product := $newmap.products.HostList.Flatten }} {{if or (eq $product.ProductType "compressor") (eq $product.ProductType "acuair")}} {{end}} {{end}} {{end}} {{end}} {{with $newmap := .}} {{ with $products := activeProducts }}