Re: [PHP] Control Structure problem

2003-09-17 Thread David Robley
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] says... > yeah, i really like using cases they work well and especially if you want to > do something different for different values, i forgot about that, its a good > way to do it, > > does php have case else? cuz that is a really handy thing in

Re: [PHP] Control Structure problem

2003-09-16 Thread Chris Shiflett
--- Eugene Lee <[EMAIL PROTECTED]> wrote: > : switch (true) { > : case ($var === 'TEST-1')?true:false: > : case ($var === 'TEST-2')?true:false: > : case ($var === 'TEST-2')?true:false: > :do something > : } > > Oh man, that's just sick... Partially because it's unnecessari

Re: [PHP] Control Structure problem

2003-09-16 Thread Eugene Lee
On Wed, Sep 17, 2003 at 01:29:26PM +1000, Tom Rogers wrote: : Wednesday, September 17, 2003, 11:47:45 AM, Eugene Lee wrote: : : EL> The switch statement doesn't do an equivalency test, does it? [...] : EL> it doesn't do: : : EL> if (($var === 'TEST-1') || : EL>($var === 'TEST-

Re: [PHP] Control Structure problem

2003-09-16 Thread Curt Zirzow
* Thus wrote Eugene Lee ([EMAIL PROTECTED]): > On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: > The switch statement doesn't do an equivalency test, does it? So while > this switch statement can be rewritten as: > > if (($var == 'TEST-1') || ($var == 'TEST-1') || ($var == 'TE

Re: [PHP] Control Structure problem

2003-09-16 Thread Eugene Lee
On Wed, Sep 17, 2003 at 12:49:03AM +, Curt Zirzow wrote: : : switch ($var) { : case 'TEST-1': case 'TEST-2': case 'TEST-2': : do something : } The switch statement doesn't do an equivalency test, does it? So while this switch statement can be rewritten as: if (($var =

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
gt; Sent: Wednesday, September 17, 2003 10:51 AM Subject: RE: [PHP] Control Structure problem > are you thinking of "default:" ? > > -Original Message- > From: Luke Skywalker [mailto:[EMAIL PROTECTED] > Sent: Wednesday, 17 September 2003 10:51 AM > To: [EMAIL PROTECT

RE: [PHP] Control Structure problem

2003-09-16 Thread Martin Towell
are you thinking of "default:" ? -Original Message- From: Luke Skywalker [mailto:[EMAIL PROTECTED] Sent: Wednesday, 17 September 2003 10:51 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] Control Structure problem yeah, i really like using cases they work well and especially if y

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
- From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 10:49 AM Subject: Re: [PHP] Control Structure problem > * Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > > Dan J. Rychlik <mailto:[EMAIL PROTECTED]> > >

Re: [PHP] Control Structure problem

2003-09-16 Thread Curt Zirzow
* Thus wrote Chris W. Parker ([EMAIL PROTECTED]): > Dan J. Rychlik > on Tuesday, September 16, 2003 5:12 PM said: > > > Thank you guys. I truly know the level of expertise on this mailing > > list, and I know that it proves invaluable. > > > p.p.s. I totally thin

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
CTED]>; "Luke Skywalker" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 10:18 AM Subject: RE: [PHP] Control Structure problem Dan J. Rychlik <mailto:[EMAIL PROTECTED]> on Tuesday, September 16, 2003 5:12 PM said: > Thank yo

RE: [PHP] Control Structure problem

2003-09-16 Thread Chris W. Parker
Dan J. Rychlik on Tuesday, September 16, 2003 5:12 PM said: > Thank you guys. I truly know the level of expertise on this mailing > list, and I know that it proves invaluable. If by "I truly know the level of expertise on this mailing list" you meant "I truly don'

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
ROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 10:12 AM Subject: Re: [PHP] Control Structure problem > Thank you guys. I truly know the level of expertise on this mailing list, > and I know that it proves invaluable. > > Thank you again. > -Dan >

Re: [PHP] Control Structure problem

2003-09-16 Thread Dan J. Rychlik
1 PM Subject: Re: [PHP] Control Structure problem > try > > if ( $var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") { > > do something; > > } > > luke > - Original Message - > From: "Dan J. Rychlik&qu

Re: [PHP] Control Structure problem

2003-09-16 Thread Luke Skywalker
try if ( $var == "TEST ONE" || $var == "TEST TWO" || $var == "TEST THREE") { do something; } luke - Original Message - From: "Dan J. Rychlik" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, September 17, 2003 9:53 AM Subject: [PHP] Control Structure problem This does

RE: [PHP] Control Structure problem

2003-09-16 Thread Jennifer Goodie
> This doesnt work as expected. > > if ( $var === "TEST ONE" || "TEST TWO" || "TEST THREE") { > > do something; > > } > > It returns true on all strings. Ive tried using the or operator > and the == but these fail as well. Any Ideas? It behaves exactly as expected. Try checking the manual

RE: [PHP] Control Structure Problem

2001-07-22 Thread Jeff Oien
I forgot to say I deleted tabs so that the width might fit in a typical mail reader. Jeff Oien > This code assigns rooms to kids signing up for Sunday school > at a very large church. Each subsequent registration is put into > the next room on the list. It looks up in the MySQL database > the r