The logical NOT operator is often used in compound conditions with the logical OR operator : Logical Operators : Language Flash / Flex / ActionScript examples


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

 

The logical NOT operator is often used in compound conditions with the logical OR operator


 


package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var userName:String = "Bruce";
        
        if (!((userName == "Bruce"|| (userName == "Joey"))) {
          trace ("Sorry, but only Bruce and Joey have access to this application.");
        }
   

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Logical Operators