RE: [PHP] php in css not working with IF's
| From: | Jack Dempsey | Date: | Thu, 04 Oct 2001 05:11:43 +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-69879@lists.php.net to get a copy of this message | ||
nice to know demorgan's laws actually show up every now and then ;-)
-----Original Message-----
From: Rasmus Lerdorf [mailto:rasmus@php.net]
Sent: Thursday, October 04, 2001 12:58 AM
To: Jason Dulberg
Cc: php-general@lists.php.net
Subject: RE: [PHP] php in css not working with IF's
> 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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net