Anvil | Smiths Smiths | Register Register | Login Login |
Search:
Show links Show tools Show tree | Previous document Next document | njet.org > Anvil > Documentation > Language reference > Statements > Simple statements > Return

Return

Return statement leaves the current function with the expression list (or ``undefinedยดยด if none was given) as the return value. All passed finally statements are executed before actually leaving the function.

In a generator function, the return statement will terminate generator enumeration; it will produce no values after return.

  return := "return" [ expr-listvalues ] [ stmt-modifier ] ";" 
Contributes notes:
Add a note
What's new | Anvil