in reply to Re^3: The joys of bad code
in thread The joys of bad code

An array lookup would work, too.