Skip to content

tlola

Skips the rest of the current pass and moves on to the next one.

Use tlola to jump over items you are not interested in, without ending the whole loop. The rest of the body is skipped for that pass and the loop carries on with the next one. In a gopheta loop the update step (e.g. i = i + 1) still runs. In a nako loop, make sure the condition changes before you use tlola — otherwise the loop can never finish.

tlola;
Draw circles, skipping every third one
tiro setaLoeto() {
  thalaKanefase(400, 200);
  bokamorago(220);
  tlatsaMmala(200, 60, 120);
  gopheta (diri i = 0; i < 16; i = i + 1) {
    fa (i % 3 === 0) {
      tlola;
    }
    kgolokwe(i * 24 + 16, 100, 18);
  }
}

kgaola, gopheta, nako