[PHP] switch structure...

2003-06-19 Thread Dan Joseph
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...

Re: [PHP] switch structure...

2003-06-19 Thread Chris Boget
I have a switch setup similar to: 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? Just do a conditional break. Chris -- PHP

Re: [PHP] switch structure...

2003-06-19 Thread R'twick Niceorgaw
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) {

RE: [PHP] switch structure...

2003-06-19 Thread Dan Joseph
Hi, Just do a conditional break. case 0: blah blah blah. if (my condition == false) break; case 1: blah blah .. Oh... you know, I've gotta stop leaving my brain at home. Thanks Chris, R'twick.. It sure is a relief to know that this

Re: [PHP] switch structure...

2003-06-19 Thread Chris Boget
Oh... you know, I've gotta stop leaving my brain at home. Thanks Chris, R'twick.. It sure is a relief to know that this list is here when I'm having bad PHP days.. which lately, is everyday... This solved my problem perfectly. np. We've all had our brain fart days. Or weeks. :p Chris