Here's a basic question, but I'm looking for efficiency in a program I'm working on.
if(Num == NaN){
//Doesn't work, get an Warning error....
}
Warning: 1098: Illogical comparison with NaN. This statement always evaluates to false.
it says the statement evaluates as false.... ok
so then this should work...
if(Num == false){
//Doesn't work...
}
My question is, once I set a number to NaN or undefined, I want to be able to use an if statement to tell me if it is or isn't undefined... I'd rather not have to make a new boolean for this, hence me looking for a new method... any ideas?