Thank you for answering my questions, especially wrapping and unwrapping elements.
I found another post which explained how to loop fairly well…it took me some time to figure out how to do it, but I was able to cycle through nested lists. Would LOVE to know how people are posting code…
Here is how it looks at the moment. I changed some List Names to something which made more sense.
elems = IN
parName = IN
parValue = IN
for p in parValue:
for e in elems:
if e.GetParameterValueByName(parName) == p:
OUT = matches, rejects
The new issue I have is that each “reject” ist being appended to the list with each cycle. Matches are also ending up in that list. I’ve done a couple of searches but have netted only Dynamo-related posts and it is getting late.
I have seven walls and four values.
I have three matches. I wouldn’t expect there would be four walls in the rejects list, but I sure wish there would be. I’m not sure how to only add the items once when cycling through the lists, or how to operate on the lists (remove duplicates, for example.)