Errror trying to Filter FamilyType.CompoundStructureLayers functions

Hi Guys,

I’m running into an error when trying to filter functions from FamilyType.CompoundStructureLayers by Finish1 and Finish2 using String.StartsWith.

I’m getting Warning: One or more of the input types are not matching. Couldn’t find a version of StartsWith that takes arguments of type (__array,string,bool)

Any ideas why this is happening? Any assistant would be appreciated!

Used String from Object before String.StartsWith fixed the issue