For Each object of Instance

Hello, with Instance I can do this according to documentation,.


# Button_1's onClick
    console.log(Instance)
    Instance.Button_2.text = "hello world";

But If I have 40 select componentes, how can I use it without write 40 lines, something like this:

For Each O in Instance do
if o.name = ‘Select_1’
o.value = ‘cup of cofffe’

Thanks
/Jorge

Hi, I found the soluttion.
Instance[“Select_1”]