JavaScript supports a goto like syntax for breaking out of nested loops. It\'s not a great idea in general, but it\'s considered acceptable practice. C# does not directly
int i = 0; while(i <= 10) { Debug.WriteLine(i); i++; for(int j = 0; j < 3 && i <= 5; j++) { //Whatever you want to do } }