Set Globals using loops

Hi,
how can I set Global Variables using "for each items" or similar ?

I would like to avoid copy/paste same blocks in screen.Initialize example.
I tried using lists and sublists but only local variables can contain global variables...........

Thank you
Claudio

Hello Claudio,

you can use a for loop for each item in a list...add elements to a list and select a specific items from a list. Some blocks related to this.

what exactly do you want to achieve?

Thank you Ramon!!
I'll work on it, I think your solution is very interesting and could be ok for my porpouse