Actionscript if else example

if (a == 1) {
trace("option a");
}
if (b == "hello") {
trace("option b");
} else {
trace("option other");
}

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.