Thank you Mouss and to everyone for answering my logic question. I now understand this better than I ever thought possible.

Dan


On May 3, 2006, at 15:14, mouss wrote:

Dan wrote:

Is:

A && (B || C || D || E || F)

equivalent to?:

A && (!B && !C && !D && !E && !F)

No.  The DeMorgan laws are:
   ! ( A && B)    =  !A  || !B
   !(A || B)         == !A && !B
so you _dispatch_ the '!' and replace || with && and conversely.

example:

if it is _not_ spam _and_ it is not virus, deliver it; else quarantine it
is the same as
   if it is _either_ spam _or_ virus, quarantine it. else deliver it




Reply via email to