Is there an expression that will to check to see if a variable has any value at all? I don’t want to check to see if a variable is true or false or if its value is 8 or 9 or whatever. i want to check to see if any value has been assigned to it at all.
“!” doesn’t seem to do the trick. I thought that
if (! variable){
// do something
}
would work if “variable” simply had no value, but this doesn’t seem to be the case.