mo
→ ofIn a `gopheta` header, takes each item of a list in turn.
gopheta (metlha ntlha mo lenaneo) { ... }Use gopheta (metlha ntlha mo lenaneo) when you want the items themselves rather than their index numbers. The loop takes its length from the list, so there is no counter to declare and increment, and no way to run off the end.
mo acts as a keyword only inside a gopheta header. Anywhere else it is left alone: you cannot use it as a variable name, and sengwe.mo stays untranslated.
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 200);
bokamorago(220);
metlha magolo = [30, 55, 80, 105, 130];
tlatsaMmala(0, 140, 120);
diri x = 45;
gopheta (metlha bogolo mo magolo) {
thalaSediko(x, 100, bogolo);
x = x + 78;
}
}