Conditional Shortcut in ActionScript
While thumbing through an old ActionScript book(Training from the Source) I found a shorthand approach to the conditional statement.
var mood:String = (money > 1000000) ? "Happy" : "Sad";
…instead of…
if(money > 1000000){ mood = "Happy"; }else{ mood = "Sad"; }











