Add extra parentheses to make the logic more apparent : Logical Operators : Language Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » Language » Logical Operators »

 

Add extra parentheses to make the logic more apparent


 


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

        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 Language
» Logical Operators