Code for switching on 1st 4 or 8 bytes of string 
Code for switching on 1st 4 or 8 bytes of string 

For more than ~8 values, a binary search may be better, but these macros will work for that also.
technosaurus/PD-snippets,technosaurus/PD-snippets