In Automatic Mouse and Keyboard, you can find the “
Switch Expression” and “
Case Value” command:

Switch Case command can
switch integer:

Switch Case command can also
switch string:

And you can download the sample from
SwitchInteger.amk and
SwitchString.amk.