return
The return keyword ends the current function and sends an integer value back to its caller:
return result
The expression is required. An empty return is not valid in 0.2.
If a function reaches its closing brace without executing return, it produces 0.
See Functions for function definition and call syntax.