Re: if statement
| From: | Joseph Szobody | Date: | Tue, 09 Jul 2002 05:03:31 +0000 |
| Subject: | Re: if statement | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-106220@lists.php.net to get a copy of this message | ||
try this:
if($type=="test1" || $type=="test2" || $type=="test3"){
Joseph
<rdkurth@starband.net> wrote in message news:8333129677.20020708211108@starband.net...
>
> Is it possible to do something like this all on one line.
> What I need is if any one of these are true then run the script
>
> if($type=="test1")or($type=="test2")or($type=="test3"){
>
>
>
> --
> Best regards,
> rdkurth mailto:rdkurth@starband.net
>