Re: unless something...
| From: | Neophyte | Date: | Thu, 12 Sep 2002 16:42:12 +0000 |
| Subject: | Re: unless something... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-116177@lists.php.net to get a copy of this message | ||
if ($A != $C || $B != $C) {
I think, but im fairly new
"Magnus Solvang" <magnus@solvang.net> wrote in message
news:20020912174709.A17211@first.knowledge.no...
> I'm used to the unless-statement in perl... How do I do this:
>
> if string A or B are NOT in string C, then do something and quit.
>
> In perl, I would do this:
>
> unless ($c =~ /$a|$b/) {
> blabla
> exit 0
> }
>
> - M