From [here][1]:

> Quite often when I'm looking at a set of pac-man ifs I find that if I just draw out something like a truth table of all the conditions involved I can work out a much better route to resolving the problem.

> That way you can also assess whether there is a better method, how you might break it down further and ( and this is a big one with this kind of code ) whether there are any holes in the logic.

> Having done that you can probably break it down into a couple of switch statements and a couple of methods and save the next poor mook who has to go through the code a whole lot of problems.

 [1]: http://programmers.stackexchange.com/questions/18512/refactoring-code-smells-in-asp-net-web-forms-code-behind-files-is-it-risky-is-i/18520#18520