boemoJwaPoapoeletso
Returns
nnetewhile thetshwantshaloop is running, andmaakawhen it is halted.
Use boemoJwaPoapoeletso to read the loop's state before making a decision — for example, changing a color, or halting only while it is running. It returns a boolean value, so use it inside fa, as in fa (boemoJwaPoapoeletso() === nnete).
Syntax
Section titled “Syntax”boemoJwaPoapoeletso()Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
}
tiro tshwantsha() {
bokamorago(220);
fa (boemoJwaPoapoeletso() === nnete) {
tlatsaMmala(0, 200, 0);
} gongwe {
tlatsaMmala(200, 0, 0);
}
kgolokwe(200, 200, 150);
}diri bogolo = 40;
tiro setaLoeto() {
thalaKanefase(400, 400);
}
tiro tshwantsha() {
bokamorago(220);
tlatsaMmala(0, 100, 200);
kgolokwe(200, 200, bogolo);
bogolo = bogolo + 2;
fa (bogolo > 200) {
emisaPoapoeletso();
}
kwala(boemoJwaPoapoeletso());
}See also
Section titled “See also”emisaPoapoeletso, simololaPoapoeletso, tshwantshaGape, nnete