I've created a group of attributes that I only want to display for certain subtypes - subtypes related to water utilities. So this is what I tried:
var sublist
sublist = Subtypes($feature)
IndexOf(["Water Connection", "Water Junction Fitting", "Water Pressure Valve", "Water Service Valve", "Water System Valve"], sublist) >= 0
That didn't work, so it seems like I should be querying the Subtype Code where "Subtype Code in (6, 13, 14, 17, 22) . Any help with this would be appreciated.