Your Account
Community
Topics (Upcoming)
More |
View story
Cannot use var n:Number == null to test if the number exists or not
http://labs.bigspaceship.com/blog/?p=40
Submitted by
arpit
30 months, 3 days agoThe Number datatype's initial value is NaN. You cannot use n==null to test if that value has been set or not (it'll always return false). Instead use isNaN(n)
Tags: Number
|