From the AmiBroker Help material:
switch Statement
switch Statement
The switch and case statements help control complex conditional and branching
operations. The switch statement transfers control to a statement within its
body.
Syntax:
switch ( _expression_ )
{
case constant-expression1 : statement;
case
constant-_expression_2 : statement;
...
case
constant-expressionN : statement;
default :
statement;
}
///////////////////////
The expressions tested must be scalar -- a single value.
You will probably use the switch statement in AFL code that uses a loop to examine each element of the array of data.
Thanks,
Howard
On Wed, Oct 15, 2008 at 4:47 AM, sidhartha70
<sidhartha70@xxxxxxxxx> wrote:
Hi All,
Bit confused about the Switch Case structure... Can it be used with
arrays or only elements of arrays...?
TIA
__._,_.___
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
*********************************
__,_._,___