Notice the portion that you’ve highlighted has an x next the the variable value.
value is a local variable from the FirebaseDB1.GotValue event.
Variables have a scope.
- A global variable (like tag_list, url_list, N) can be used anywhere.
- A local variable can only be used inside it’s scope.
That’s why you’re getting the little “X” next to “value”, because “value” cannot exist outside of it’s scope (FirebaseDB.GotValue). It has to stay in it’s little box. You cant take it out of the box.
tag and value are attributes specific to the Firebase.GotValue event. They have no meaning outside of that event.
For Example, let’s say the image you want to for Display_button is a picture of a penguin.
Let’s say you have a tag in Firebase called “penguin” with the value http://www.website.com/penguin.png (that’s not a real website, don’t try to click on it. I’m writting this to see how many people actually click on it)
When the screen starts, Get the tag “penguin”.
In the .GotValue event, create a condition: if the tag you’re trying to access is penguin, then you can set display_button.image to value (The value would be the URL of the penguin image)
Hope that makes more sense