RE: [PHP] php in css not working with IF's
| From: | Rasmus Lerdorf | Date: | Thu, 04 Oct 2001 04:58:08 +0000 |
| Subject: | RE: [PHP] php in css not working with IF's | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-69877@lists.php.net to get a copy of this message | ||
> Theoretically, either/or I'm assuming. If A isn't 10 or A isn't 9...
But since A cannot be both 9 and 10 at the same time, A will *always* not
be one of them.
It's exactly the same as saying: if (!(A==9 AND A==10))
Obviously A cannot be both 9 and 10 at the same time so the above will be:
if(!(false)) which is the same as if(true)
Some people find it helpful to draw Venn diagrams of their boolean logical
expressions. See http://www.lib.csub.edu/infocomp/search/boolean/venn.htm
for a simple description of those.
-Rasmus