Use the <= and >= operators to check if one value is less than or equal to, or greater than or equal to, another value: : Comparison Operators « Language « Flash / Flex / ActionScript






Use the <= and >= operators to check if one value is less than or equal to, or greater than or equal to, another value:

 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        trace(5 <= 6);   // Displays: true
        trace(5 >= 5);   // Displays: true
    }
  }
}

        








Related examples in the same category

1.Comparison Operators in Actionscript
2.Strict equality
3.Number Comparison
4.Checking Equality or Comparing Values
5.The logical inequality operator (!=) returns false if two values are equal and true if they aren't.
6.Use the < and > operators to check if one value is less than or greater than another value:
7.When comparing primitive datatypes, ActionScript compares them by value.
8.When you compare composite datatypes, ActionScript compares them by reference.
9.Two composite items are equal only if they both refer to the identical object
10.Equality (==)
11.Greater Than (>) and Less Than (<)
12.Not Equal To (!=)