[PHP] reversing an IF statement

2004-05-01 Thread Kim Steinhaug
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 }

RE: [PHP] reversing an IF statement

2004-05-01 Thread Chris
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

Re: [PHP] reversing an IF statement

2004-05-01 Thread Curt Zirzow
* 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