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