Mega Code Archive

 
Categories / Flash ActionScript / Language
 

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         }     }   } }