Logical NOT : Logical Operators : Language Flash / Flex / ActionScript examples


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

 

Logical NOT


 

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

        var now = new Date(  );        // Create a new Date object
        var day = now.getDate(  );     // Returns an integer between 1 and 31
        var month = now.getMonth(  );  // Returns an integer between 0 and 11
        
        if (  !( (month + day)==1)  ) {
          // Execute "not-January 1st" code
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Logical Operators