PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Can CASE fall through?

It would be nice is CASE was able to fall through, like:

Case(arg$)
"you":
10:
//do something if either "you" or 10.
break;
end;


Is this possible?
Or to have multiple statements evaluated in CASE, like:

Case(arg$)
"you" or 10:
//do something
"me" or 15:
//do something
end;
Not possible. A great idea though. I will see what can be done.
Hi,

Being the nice guy I am, I have something even better for you. You can now specify multiple case values.

Code:
t$ = 20;
case (t$)
10, 20, 30:
ShowMessage(1);
end;

40, 50, 60:
ShowMessage(2);
end;
end;


It does the same thing and was easier to code for me! :)
Wonderful. I think this will add to the ease of programming with PPL. Thanks