[Imperative] code block not working



Hello, seems like there is some syntax error here or idk. Can some1 explain to me why it is not working?

20 errors is a lot to trouble shoot at once - you’re already pretty far off base wtih not much to show for it. I recommend you start over in a new session with this block frozen to prevent namespace corruption.

When writing imperative code I recommend starting with a template that does basically nothing and then scaling up from there; I also recommend always using a definition as they’re more portable. This commented sample shoudl get you started.

That said, i wouldn’t bother with imperative here - DSCore.String.FromObject(objList); should work just fine in associative code which is the default method that is unique to design script:

Don’t reinvent the wheel if you don’t have to.