ID: 9093 User Update by: [EMAIL PROTECTED] Old-Status: Open Status: Closed Bug Type: Scripting Engine problem Description: if(1) fails Previous Comments: --------------------------------------------------------------------------- [2001-02-03 19:04:24] [EMAIL PROTECTED] The code causing the error looks something like this.... Here is the value of $name: "some_data" if($what_the_fuck= ($name != NULL)) { echo "debug (passed): $what_the_fuck"; } else { echo "debug (failed): $what_the_fuck"; } And this is what is happening..... debug (failed): 1 ERROR: Template: trying to set NULL template variable name the "what_the_fuck" variable == 1 so why is if failing. "name" == "some_data". If ($name != NULL) == 1 then if should not fail. P.S. I added the "what_the_fuck" for clearity only. thanks, richie --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=9093 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]