How do I get an object in a loop and read or change its variables?

I mean " repeat for each instance"

Sorry! English is not my language. I know that there is a “repeat for each instance”, but I do not know how to access the object inside the loop. I need to get objects on the scene in a loop and output their variables to text.

Hi, this could probably be of help for you: [Solved] Spawning objects with instance variables