When comparing primitive datatypes, ActionScript compares them by value. : Comparison Operators : Language Flash / Flex / ActionScript examples


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

 

When comparing primitive datatypes, ActionScript compares them by value.


 

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

        var quantity:Number = 6;
        var total:Number = 6;
        trace (quantity == total);         // Displays: true

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo Language
» Comparison Operators