Re: OR
| From: | Travis Low | Date: | Mon, 26 Apr 2004 00:36:45 +0000 |
| Subject: | Re: OR | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-184593@lists.php.net to get a copy of this message | ||
An easy way to remember each is:
NOR -- not or -- logical negation of OR
XOR -- exclusive or -- like OR, but false if both are true.
cheers,
Travis
-{ Rene Brehmer }- wrote:
According to historical records, on Sun, 25 Apr 2004 22:00:04 +0200 Marco Schuler wrote about "Re: [PHP] OR":-- Travis Low <mailto:travis@dawnstar.com> <http://www.dawnstar.com>Hi Am So, 2004-04-25 um 16.00 schrieb -{ Rene Brehmer }-:Heh ... thanks Marco ... I don't recall ever having actually worked with XOR, not even in electronics class ... when I get into the more complex logics I usualy end up starting to scetch them to figure them out ... it's the pain and joy of trying to combine as many expressions into as little as possible... ReneAccording to historical records, on Sun, 25 Apr 2004 17:14:13 +1000 Aidan Lister wrote about "[PHP] OR":[...]|| && |! &! ^ being OR, AND, NOR, and NAND (believe NOR is actually called XOR, can't remember ...)Just to help your mind: NOR: A | B | Y ---+---+--- 0 | 0 | 1 0 | 1 | 0 1 | 0 | 0 1 | 1 | 0 XOR: A | B | Y ---+---+--- 0 | 0 | 0 0 | 1 | 1 1 | 0 | 1 1 | 1 | 0