switch case in x++ :
static void
Job3(Args _args)
{
int i = 10;
str output = "A";
switch(i)
{
case 10:
output = "B";
i = i + 20;
case 20:
output = "C";
i = i + 10;
break;
case 30:
output = "D";
break;
}
info(strFmt("%1", i));
info(output);
}
0 comments:
Post a Comment