Greater Than (>) and Less Than ( : Comparison Operators : Language Flash / Flex / ActionScript examples


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

 

Greater Than (>) and Less Than (


 


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


        var x:int 0;
        
        var a:int = -1;
        var b:int 0;
        var c:int 1;
        
        trace(x <= a)// Displays: false
        trace(x >= a)// Displays: true
        trace(x <= b)// Displays: true
        trace(x >= b)// Displays: true
        trace(x <= c)// Displays: true
        trace(x >= c)// Displays: false

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Comparison Operators