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


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

 

Logical OR


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var x = 10;
        var y = 15;
        if (x || y) {
          // This code executes if one of either x or y is not zero
        }
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Logical Operators