Quote:
|
Originally Posted by jake13jake
So it tests as a boolean when comparing to a string value and as a floating point when comparing to a floating point? I'm so confused.
|
... what? '!' is a boolean operator, I think !this.stringvalue tests if the string is set or not, ie:
PHP Code:
temp.stringval = "Wee";
if(temp.stringval) echo("This should fire.");
temp.stringval = ""; // or unset("temp.stringval");
if(!temp.stringval) echo("This should also fire.");