Next / Previous / Contents / TCC Help System / NM Tech homepage

16.2. return: Return the result of a function

To return the result value from a function, execute a statement of this form:

return e

where e is any expression.

You can omit the expression. In this case, the special value None is returned to the caller.

If execution reaches the end of a function without reaching a return statement, the effect is the same as

return None