View Single Post
  #6  
Old 01-11-2006, 09:44 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
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."); 
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote