Performing Actions Conditionally : If : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » If »

 

Performing Actions Conditionally


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){

        var animalName:String = "turtle";
        
        if (animalName == "turtle") {
          trace("Yay! 'Turtle' is the correct answer.");
        }

    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo Statement
» If