Use a dispatch table.
There is plenty amount of documentation on how using Switch breaks your program in surprising ways on this site.
In reply to Re: switch statement
by Corion
in thread switch statement
by fionbarr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |