26.06.2011, 06:29
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
}
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
}