sounds simple doesn't it? this is fucking driving crazy
lets say "myvar" was never mentioned in the code anywhere.
the following gives an error message "myvar is undefined" which I want to avoid:
Code:
if ( myvar = = undefined )
{
// do nothing
}
I also tried:
Code:
if ( myvar = = null )
if ( myvar = = 0 )
if ( myvar = = "" )
if ( myvar = = '' )
of course I don't use spaces between the two "=" but that's just for displaying