NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
The return statement

If you want a function to return a value or to return before it reaches the end of its code, use a return statement.

An expression may optionally follow the return keyword and, when present, is the value returned by the function. The type of the expression must be compatible with the return type of the function.

return [expression];