How does an If statement work in Flash?

Kennon

New member
I'm needing to use an If statement in flash (actionscript 2.0), and I'm having difficulties xD I've used If-Else stuff before,so I know the basic idea, but Flash is confusing me.

What I'm trying to do is get it so when a certain image is visible, another image is NOT visible. I've tried a few other things, but for it to work in all instances I need an If statement, I'm certain of that.

So could someone tell me how I might do this?
Could you explain what stuff does/goes to when you post how I'd do it? xD; otherwise I won't be able to work with it very well.
 
if(myBoolean){
trace("myBoolean variable exists and is true");
}
if(!myBoolean){
trace("myBoolean variable either does not yet exist, or it is false");
}
 
Back
Top