Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
August 31, 2005, 7:01 pm
rate this thread
programmers too, So here is what is likely a stupid question for you.
if(arg1 =="" || arg1==(typeof arg1=="undefined"))
alert("Enter a value.");
Now I pass something to the function sayHello by calling it with
for example. Works fine.
However my if conditional for checking whether the passed value to the
arguement is ok is screwed up. I am checking for a undefined value or
an emphty string.
Why can't I check for whether the argument is undefined? I keeping
coming up with an alert of Hi undefined.
Thanks for any help in advance. :)
- Jonathan N. Little
August 31, 2005, 8:19 pm