Use a logical NOT operator, !, to check if a condition is not true : Logical Operators : Language Flash / Flex / ActionScript examples


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

 

Use a logical NOT operator, !, to check if a condition is not true


 


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

        var userName:String = "Bruce";
        if (!(userName == "Bruce")) {
          trace ("This application knows only Bruce's birthday.");
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Logical Operators