Hi,
Also muss ich in der while-Schleife ein break einbauen wenn body erreicht ist?
Das kannst du auch gleich in die Weiterlaufbedingung der Schleife einbauen - so lange weiterlaufen, wie das Element *nicht* body ist und ...
MfG ChrisB
--
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]
“Whoever best describes the problem is the person most likely to solve the problem.” [Dan Roam]