I reckon the select/case example wold be best sited, especially if you order it so the most common commands..
(I assume will be N,S,E,W etc)
are at the beginning of your argument.
@DrAv,
This would prevent other commands that begin with the first letter. I.e. Eat wold always be read as East etc.
(I assume will be N,S,E,W etc)
are at the beginning of your argument.
@DrAv,
This would prevent other commands that begin with the first letter. I.e. Eat wold always be read as East etc.