isNaN()

eSignal EFS 2

isNaN()

Top  Previous  Next

 

isNaN( value )

 

Returns true if the value passed is NaN (Not a Number).

 

Parameters

 

value

the value to be evaluated

 

Usage

 

function main() {

var myVar;

 

       ...

       ...

 

       if ( isNaN( myVar ) == true ) {

               //the variable myVar does not contain a valid number

               //so take some action

       }

 

 

}