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


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

 

Logical AND


 

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

        var x = 100;
        var y = 51;
        
        if (x>50 && y>50) {
          // Code here executes only if x and y are greater than 50
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Logical Operators