i = 1; while (i != 6) { // if i == 1 ... // if i < 5 ... if i == 5 { let i = 0; } ++i; // somewhere you need a switch to break out of the loop // so at that point set i = 6 and the while will terminate. }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)