The compiler itself will be more than happy with any level of nesting you care to throw at it, but there's a catch: you won't!. In practice, anything deeper than 2 or 3 levels of nesting, especially if it spans several monitor windows, is going to become difficult to follow/understand, and the moment this happens, you will not be able to maintain it anymore. Let 6 or 12 months pass, the memory of why exactly you did this or that fades away a bit, and now who is going to touch up or add features to that mess?
It is much better to write small functions which do one small thing and call them as needed, have one function call another one and so on.
Yep, get it, pretty documentation obsessed. That little if, while will be void un to itself later, just to build up the whole string into a single variable so I can strip out the data I need to display etc. If I could have reduced it to a more simple set of instructions I would have. Thanks for the feedback...