On 17/11/2012, at 8:51 AM, Joel Pearson wrote:

> Wouldn't a case statement work for this kind of thing?

case statements are more of an if..else replacement rather than nested ifs. If you can refactor the code to use case statements then that's a good start because from there you can replace the branches with calls to objects.

Nested ifs are really hard to get rid of without major code refactoring.

Henry