> When working with Boolean expressions in this way, deMorgan's laws often
come in handy; these state that:
>      !a AND !b    is the same as     !(a OR b)
>      !a OR !b     is the same as     !(a AND b)
> Hope this helps!!

I don't know who this deMorgan dude is, but that rule is being written down
in red on a piece of paper that's getting stuck to the bottom of my screen.
It makes perfect sense, and I can start to see where the whole "maths" thing
comes into programming now... It's actually not only a case of logic, but
very much based on maths as well (which I'm afraid isn't something I'm good

Needless to say, this helped me quite a bit... I'll try and implement it
wisely :-)


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to