detecting null variable?
#1

I need to detect if a variable (string) is null or contains no data.

If it were javascript, it'd look like this:

var name = prompt ("Enter your name","") //prompts user for name; stores it in variable 'name'
if (name == null) //if name is null...
{
//execute this code
} else {
//otherwise execute this
}
Reply


Messages In This Thread
detecting null variable? - by plutoniumman - 26.06.2011, 06:29
Re: detecting null variable? - by Bakr - 26.06.2011, 07:00
Re: detecting null variable? - by plutoniumman - 26.06.2011, 07:04

Forum Jump:


Users browsing this thread: 1 Guest(s)