Re: If statement w/ multiple conditions
| From: | Chris Shiflett | Date: | Tue, 26 Nov 2002 16:02:36 +0000 |
| Subject: | Re: If statement w/ multiple conditions | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-126113@lists.php.net to get a copy of this message | ||
--- Jason Wong <php-general@gremlins.biz> wrote:
> At 13:50 26.11.2002, ed@home.homes2see.com said:
> >if ($lineone && $linetwo && $linethree && $linefour = "")
>
> Actually that expression will always be FALSE. $linefour = ""
> does not evaluate to TRUE thus the whole expression to be FALSE!
Yes, you're right. Of course, I don't think he meant to be assigning
the variable, anyway. :-)
Chris