Re: switch structure...
| From: | R'twick Niceorgaw | Date: | Thu, 19 Jun 2003 17:58:53 +0000 |
| Subject: | Re: switch structure... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-152204@lists.php.net to get a copy of this message | ||
On 19 Jun 2003 at 13:52, Dan Joseph wrote:
> Hi All,
>
> Looking for some guidance on something I want to be able to do with switch,
> and I don't think it exists, but I'd like to consult the list as a last
> resort.
>
> I have a switch setup similar to:
>
> switch ($step) {
> case 0 :
> blah...
> break;
>
> case 1 :
> blah...
> breakl
> }
>
> Under case 0, I'd like to do a few things, and then if a certain condition
> is met, move into case 1. Is this possible? Am I off the wall here? Is
> there a better way of doing this madness I've come up with?
>
> -Dan Joseph
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
case 0:
blah blah blah.....
if (my condition == false)
break;
case 1:
blah blah ..............