I think this is a bug…
But it looks like I only can use a global variable a maximum amount of time. At least in a text.
In photo 1 you can see it will not print the result on line 5.
When I, using cut&paste, move line 5 to line one it will instead not recognise the global variable on line 5 and print the whole array.
Tried a new text element and only the global variable with the same result, only printed 4 times.
I did try to replicate in a completely new widget, with only one global variable and text. And it worked there.
So not quite sure what the problem is here.

