if i have object text(text_bakery)
Box has instance variable name is "Bake"
im tying
for each text_bakery
compare text_bakery.(instance variable name = Bake) set text to Bake.value
You ask how to compare variable for object instances?
well if object is sprite:
+ System: Sprite.Variable1 = 10
and for the for each :
+ System: For each Sprite
-> (no actions)
if this is what you meant
If you want to set the text to the instance variable (defined on the same object) - you don't need "for each" or "compare" conditions. A single action should work:
text_bakery Set Text to self.Bake
or
text_bakery Set Text to text_bakery.Bake
Develop games in your browser. Powerful, performant & highly capable.
but how do i compare
compare text_bakery.(instance variable name = Bake)
name is equal or not
instance variable name = Bake
Why do you want to compare the name? You already know the name - it's Bake. It will be Bake for all instances of the object.
There's no point in checking if the name is still Bake, because you can only change it in the editor.
You can check the value of the variable, for example:
Compare instance variable Bake > 15