Hello,
No, but you can have multiple cases one by one (works as or):
switch( x )
{
case 9: somecode;
break;
case 10:
case 11:
this will execute for 10 OR 11;
break;
case 12:
some other code;
break;
}
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "sidhartha70" <[email protected]>
To: <[email protected]>
Sent: Monday, April 27, 2009 11:52 PM
Subject: [amibroker] Switch.... Case.... question...
> Can I use logical operators within the Case statement...??
>
> i.e.
>
> Switch (x)
> {
> Case 9:
> ...
> Case 10 OR 11:
> ....
> Case 12:
> ....
> }
>
>
>
> ------------------------------------
>
> **** IMPORTANT PLEASE READ ****
> This group is for the discussion between users only.
> This is *NOT* technical support channel.
>
> TO GET TECHNICAL SUPPORT send an e-mail directly to
> SUPPORT {at} amibroker.com
>
> TO SUBMIT SUGGESTIONS please use FEEDBACK CENTER at
> http://www.amibroker.com/feedback/
> (submissions sent via other channels won't be considered)
>
> For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> http://www.amibroker.com/devlog/
>
> Yahoo! Groups Links
>
>
>