Skip to content
ExamplesOpen editor ↗

busa

→ return

Returns a value from a function.

busa boleng;

Use busa inside a function declared with tiro to send a value back to whoever called the function. Execution of the function stops at the busa statement.

Return the larger of two numbers
tiro kgolwane(a, b) {
  fa (a > b) {
    busa a;
  }
  busa b;
}

tiro