Answers

Apr 29, 2009 - 10:21 PM
you can use comparison syntax and typeof syntax to do that
say u have the variable called 'myvar'
simply:
to check if its null
if (myvar == null){
//this is null
}
to check if its not an object:
if (typeof myvar != 'object'){
//this is not an object
}
say u have the variable called 'myvar'
simply:
to check if its null
if (myvar == null){
//this is null
}
to check if its not an object:
if (typeof myvar != 'object'){
//this is not an object
}

May 21, 2009 - 10:32 PM
The question looks to be abandoned by the user who asked it. If no action is taken within 2 days, a Quomon Moderator will consider closing the question and distributing the points.
The Quomon Team
The Quomon Team
Add New Comment