I created an object and generated an infinity of copies of it. All inherited 3 variables from the main object.
Now I need to access 1 of these 3 instance variables, from each copy.
To improve the explanation I will give names to these instance variables: "music", "steps" and "pizza".
I need to compare the value of the "pizza" instance variable of each copy object.
To make this distinction between copies I decided to use idd.
Now follows the failed attempt to solve this problem through javascript:
if(runtime.objects.position.iid(0).pizza == "Pepperoni")
{runtime.globalVars.total_Pizza++;}
This logic didn't work, but what would be the correct logic to access an instance variable from an object copy through javascript?