Functions

return

Leave a function and send a value back to the caller.

Syntax

return <value>;

How she behaves

  • If the function used returning, keep the value matching that type.
  • If it did not, the type is still on you. I trust you. Mostly.
  • A function can return from several branches (if / else).

Example

if y sameas z;
    return true;
else;
    return false;
end;

See also