I looked for this everywhere and I cannot find my answer, everyone uses VBScript.

What I have is a query that passes in a few values.

myPage?num=1&text=hi

in my ASP statement I do

Code:
num = Request('num');
text = Request('text');
If I pass in myPage?num=1 it will return an undefined value for text. I know if I tried
Code:
if(text == 'undefined')
 //work here
it will not work. Neither will using null or ''. Can I somehow validate my vars and prevent this?

I tried using try and catch but these did not work.

Thanks for any help. I'm at the end of the road for this one.