in reply to deep usage of if-else!!
You should try to divide that piece of code in logical, reusable parts that can be abstracted into functions. That way, the nesting won't go very deep and your program will gain in readability and maintainability.
--
David Serrano
|
|---|