This is related to a chapter from beautiful code. And in that chapter I read about the nested ifs.
if
The author was talking about deeply nested if>
if>
You might also consider using the Visitor pattern.