Quote Originally Posted by devmonkey View Post
after a lot of messing about I just stuck the logic in a lookup table and deleted all my code ;-)
Hahaha love it. Sometimes 'ugly' solutions are just the best.