Convert a single letter (a to g) to its corresponding number (1, 8)

Hattie Dog's icon

It sounds pretty simple, but for the life of me I can not find a way to get this working through the max tutorials?

Thank you!

Roman Thilenius's icon

itoa gives you their (unique) ascii code as numbers. then you can change them as you like using math.

or treat them as symbols (actually they _are in max) and do
[select a b c d e f g]
[1] [2] [3] [4] [5] [6] [7]