Why this code block function always return null?

I try to loop through a list of strings, below is the simplified version. But I always get null as return. Any idea why?

Thanks in advance!

What Dynamo version are you in?

Hi @jacob.small,

I’m using the latest supported version for Revit 2016, which is 1.3.2.

What result are you looking for?

I expected the strings to be extracted in the loop (the code above is just an example, I try to make use of the extracted strings with miscellaneous nodes inside the loop)

You shouldn’t need to extract them based on that data structure. Just iterating over your list should do without the sub-function, but I’d need to see more of your graph to provide better input.