If Statement with boolean constant : If : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » If »

 

If Statement with boolean constant


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var greeting;
        
        if (true) {
          greeting = "Hello";
        else {
          greeting = "Bonjour";
        }
        
        trace(greeting);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Statement
» If