Logic
| From: | Dan McCullough | Date: | Wed, 05 Dec 2001 01:28:45 +0000 |
| Subject: | Logic | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-76630@lists.php.net to get a copy of this message | ||
Question. I am trying to check to see if a certain piece of code should be run. Here is an
example.
if ($type != "add") || ($type != "edit") || ($type != "delete") {//if
this or this or this then
then run this code
} else {
then run this
}
Is this correct, for some reason this isn't working.
=====
dan mccullough
--------------------------------------------------------
"Theres no such thing as a problem unless the servers are on fire!"
__________________________________________________
Do You Yahoo!?
Buy the perfect holiday gifts at Yahoo! Shopping.
http://shopping.yahoo.com