String not String?

So this should be simple enough. Parse a list of open documents and find one by name.
Not working.
Don’t see any typos.
Both are strings.

The return for findDoc is happening at the item level instead of the list level. It’s not returning the output for each item, just the last one. You need to include some form of list comprehension to maintain the output of each item before returning their combined outputs.

1 Like

Thanks. Yes
Looking at all the wrong stuff.

1 Like