View Single Post
Old 05-18-2009, 11:51 AM   #13 (permalink)
Tanax
The Prestige
Upcoming Programmer Inquisitive 
 
Tanax's Avatar
 
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
Tanax is on a distinguished road
Default

Quote:
Originally Posted by allworknoplay View Post
I'll have to ponder on this a little bit. I understand that we are not changing the value, still confused about why (!) doesn't equate the variable to "true", if it was originally set as "false".

The way I am seeing it, (which is probably wrong) is this:

if(!false) return true;
It's wrong.
Basicly
PHP Code:
if(!$bValidated) return false
is essentially the same as putting
PHP Code:
if($bValidated != true) return false;
// or if($bValidated == false) return false; 
__________________
Tanax is offline  
Reply With Quote