Help with simple lookup table.

No need, but certainly something to keep in mind 8)

I like the 2nd one, altho that requires a loop to look thru the array looking for a value.