Message The last statement in non-void function "<name>" is not a return statement. Description A function that returns a value does not end with a return statement. If function execution reaches the end of the function, the implied return statement that executes will return an undefined value. This might not have been what you intended. User Action End the function with a return statement that specifies a return value.