Reply to Re: How to define a range in 'switch - case'
Posted by Tim Streater on 09/29/37 11:37
In article <dqgb7t$2it0$1@news.imp.ch>,
"Stefan Mueller" <seekware-remove-@yahoo.com> wrote:
> How do I have to define a range in 'case'? I tried '> 0' but it's not
> working.
>
> switch ($my_number) {
> case 0:
> ...
> break;
>
> case > 0:
> ...
> break;
> }