Hey guys. I'm just asking if there is a certain way to do this :
If (_root.instancename EXISTS) [
and blalbalbla
]
Do you know a way to do this? I know perhaps it's stupid enough I just don't know it. Well thanks!
Printable View
Hey guys. I'm just asking if there is a certain way to do this :
If (_root.instancename EXISTS) [
and blalbalbla
]
Do you know a way to do this? I know perhaps it's stupid enough I just don't know it. Well thanks!
use true or false
code:
if(playerAlive == true){
//then do something...
}
//or
if(playerAlive) {
//this is the same as above
}
When the clip of whatever is attached, then a var turns true, when removed it turns false.
it works with objects too???
Ok nevermind I see what you mean. Thanks!
code:
if(variable == undefined){
//the variable doesnt exist yet
}