mokwalo
→ str()Converts a number or a `nnete`/`maaka` value into text.
mokwalo(boleng)mokwalo(123) is “123” — a number you could count with is now text you can join to other text with +.
Note: converting nnete or maaka gives the text “true” or “false” in English. That is how the value is written out underneath — so do not expect “nnete” in the resulting text.
Given a list, it returns a list of strings.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
boleng | sengwe | A number, text, or nnete/maaka. A list of those is also accepted. |
Examples
Section titled “Examples”tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(220);
tlogelaMothalo();
diri bogolo = 150;
diri boleng = mokwalo(bogolo) + " diphikisele";
kwala(boleng);
tlatsaMmala(140, 60, 180);
thalaSediko(200, 200, bogolo);
}tiro setaLoeto() {
thalaKanefase(400, 400);
bokamorago(220);
tlogelaMothalo();
diri boleng = mokwalo(nnete);
kwala(boleng);
kwala(boleng === "true");
tlatsaMmala(0, 170, 120);
thalaKhutlonne(80, 150, 240, 100);
}