How to Print Array's Content Using ForEachLoop?

How can I make a String Array to print all its content to a a Widget static text? I am using ForEachLoop to scan through the Array, but it only prints the last Index in the Array as a result for my static text.

So to visualize it for you: If I have lets say: Ash, Misty, and Brock in this order in the String Array and it goes through the ForEachLoop, the result would be Brock for my “Set Players” text.

Now how can I make it so that the result would be: Ash, Misty, Brock instead of just Brock?

And just a bonus, how could I make it so that there would be (,) after each name, so they don’t pile up as: AshMistyBrock. I know using Append you can achieve this but thus far it would only help me as far as for the first name: Ash, MistyBrock.

Thank you so much for this great piece of code. I got mine to work differently but this seems to work fine, too. I can use it in the future :slight_smile: