ReGaHss: Abbruch von geschachtelten foreach / while-Schleifen mittels "break" #878
Labels
🐛 bug-report
Something isn't working
🏷️ ReGaHss
This refs the ReGaHss component
👍 important
This is an important issue/ticket with high priority
Milestone
Describe the bug
Wenn mehrere Schleifen verschachtelt programmiert werden, ist es aktuell entscheidend, an welcher Stelle der Abbruchbefehl "break" verwendet wird, damit das Programm überhaupt ausgeführt wird. Das sollte aber so nicht sein! siehe Beispiel unten
To Reproduce
Steps to reproduce the behavior:
und es wird folgendes korrektes Resultat zurückgegeben:
break2
nach demWrite("x");
auskommentiert wird (d.h. das!
davor entfernt wird kommt es fälschlicherweise zu folgendem Syntax-Error:Expected behavior
Es sollte egal sein, an welcher Stelle der äußeren Schleife der Abbruch via
break
erfolgen soll!Screenshots
If applicable, add screenshots to help explain your problem.
System information (please complete the following information):
Additional context
Das exakt selbe Probleme existiert mit der Verwendung von
continue
stattbreak
. D.h. beide Statements verlieren nach der zweiten inneren Schleife Ihre Gültigkeit und können fälschlicherweise nicht mehr angewendet werden.The text was updated successfully, but these errors were encountered: