Often I end up using a dumb IF statement which to me seems that
it could have been done some other way.
Example :
if(
($_GET[id]==1) or
($_GET[mode]==home) or
((!isset($_GET[item])) ($_GET[mode]==news))
) {
// Here we do nothing
} else {
// This is where we do it
}
PROTECTED]
Sent: Saturday, May 01, 2004 3:29 AM
To: [EMAIL PROTECTED]
Subject: [PHP] reversing an IF statement
Often I end up using a dumb IF statement which to me seems that
it could have been done some other way.
Example :
if(
($_GET[id]==1) or
($_GET[mode]==home) or
((!isset($_GET[item
* Thus wrote Kim Steinhaug ([EMAIL PROTECTED]):
Often I end up using a dumb IF statement which to me seems that
it could have been done some other way.
Example :
if(
($_GET[id]==1) or
($_GET[mode]==home) or
((!isset($_GET[item])) ($_GET[mode]==news))
For starters, don't
3 matches
Mail list logo