Reputation: 788
Using Titanium, is there a way to compare a TextField's value to NaN (not a number)?
For example:
if (parseInt($.myTextField.value) == NaN)
In this example, it doesn't enter the if statement. I've also tried with '===' to no success.
If I log the value converted to int it says "NaN"
Ti.API.info(parseInt($.myTextField.value));
Your input is appreciated!
Upvotes: 1
Views: 1453