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>
If and switch statements are not purely OO. They are conditional procedural logic, but do a very good job! If you want to remove these statements for a more OO approach, combine the 'State' and 'Descriptor' patterns.