RE: [PHP-WIN] Question concerning SWITCH and Comparisons

2004-11-11 Thread Tony Devlin
From: Alejandro César Garrammone [mailto:[EMAIL PROTECTED] Sent: Thursday, November 11, 2004 2:55 PM To: [EMAIL PROTECTED]; Php-Windows Subject: Re: [PHP-WIN] Question concerning SWITCH and Comparisons I think this may work...but doing some debbuging I suggest: case ($qty>=1600 and $qty< 24

Re: [PHP-WIN] Question concerning SWITCH and Comparisons

2004-11-11 Thread Alejandro César Garrammone
I think this may work...but doing some debbuging I suggest: case ($qty>=1600 and $qty< 2400): //$qty is less than 2400 and I modified the semi-colon of this part of code: case ($qty >= 2400): //$qty is greater than or equal to 2400 I tried your code and It works! Hope this helps, Alex - Orig

RE: [PHP-WIN] Question concerning SWITCH and Comparisons

2004-11-11 Thread Svensson, B.A.T. (HKG)
Yepp, that true, and thats why we have switch. Otherwise switch would be syntactic suggar only. -Original Message- From: Gryffyn, Trevor To: Php-Windows Cc: [EMAIL PROTECTED] Sent: 11-11-2004 19:17 Subject: RE: [PHP-WIN] Question concerning SWITCH and Comparisons One thing I'll

RE: [PHP-WIN] Question concerning SWITCH and Comparisons

2004-11-11 Thread Gryffyn, Trevor
I just copy and pasted your switch statement and it worked fine for me the way you described it needed to work. One thing I did notice, there's a semi-colon on the >= 2400 CASE, but it still seemed to work ok for me (maybe I noticed and fixed that before I tested >= 2400). What error are you gett