GMS 2 how to check if variable is declared

Suzaku

Member
I have a global variable that needs to get the value of other variable, but first it needs to check if that other variable is areadly declared or if it has any value. How can I do this? Thank you.
 

Binsk

Member
Bad Dan1, bad. Don't give advice when you don't know what you're talking about. That won't work. Listen to cpaz.

That said, if you don't know if a variable is defined at some point in your code then you have bigger problems with your code's design.

Lastly, screw this mobile keyboard. Gracious.
 
Top