Re: ASP Guy Looking for "Select Case" equivalent
| From: | Adam Wright | Date: | Fri, 19 Jan 2001 15:46:33 +0000 |
| Subject: | Re: ASP Guy Looking for "Select Case" equivalent | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-35630@lists.php.net to get a copy of this message | ||
switch
adamw
----- Original Message -----
From: "Karl J. Stubsjoen" <karlflips@kstub.com>
To: "PHP Mailing List" <php-general@lists.php.net>
Sent: Friday, January 19, 2001 3:51 PM
Subject: [PHP] ASP Guy Looking for "Select Case" equivalent
> Hello,
>
> What is the equivalent command to Select Case as in:
>
> Select case 10 + 2
> case 10
> 'nope
> case 11
> 'nope
> case 12
> 'yep
> case > 13
> 'yep - but case 12 comes first!
> end select
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>