Performing Complex Conditional Testing : If : Statement Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Statement » If »

 

Performing Complex Conditional Testing


 

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

        // Use the logical AND (&&), OR (||), and NOT (!) operators to create compound conditional statements.
        
        var current:Date = new Date(  );
        
        if (current.getDate(  ) == 17 && current.getMonth(  ) == 3) {
          trace ("Happy Birthday, Bruce!");
        }

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Statement
» If