* 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"))
F
The easiest method is just to encase all the checks in parenthese, then
negate it:
if(!(
($_GET["id"]==1) or
($_GET["mode"]=="home") or
((!isset($_GET["item"])) && ($_GET["mode"]=="news"))
)) {
// This is where we do it
}
-Original Message-
From: Kim Steinhaug [mailt
2 matches
Mail list logo