kgaola
→ breakCuts a loop short there and then, and code continues after it.
kgaola;Use kgaola when you have already found what you were looking for and repeating further would achieve nothing. It leaves the loop at once — even while the condition is still true — and execution resumes at the first statement after the loop. kgaola also ends a tsela branch inside tlhopha, stopping the code from falling through into the branch below it.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 200);
bokamorago(220);
tlatsaMmala(0, 120, 200);
gopheta (diri i = 0; i < 100; i = i + 1) {
diri x = i * 24 + 12;
fa (x > bophara) {
kgaola;
}
thalaKhutlonne(x, 76, 16, 48);
}
}