#IF(#AddressType NE "ShippingAddress" AND #AddressType NE "ShippingAndBillingAddress" AND #AddressType NE "BillingAddress") #LOCAL("RegistrationSetHasItems",0) #LOOP(#Shop.RegistrationSet) #IF(#Attribute.IsUserDefined AND #Attribute.IsUsedInRegistrationSet) #SET("RegistrationSetHasItems",1) #ENDIF #ENDLOOP #IF(#RegistrationSetHasItems)