This will cause the currently executing script or codeblock to terminate immediately and return to the caller.
return [expression]If an expression follows, it will be evaluated and the global return value will be set to the result. The global return value is an internal global variable that can be set and queried from any script or the comand prompt as the special variable name $?. The retval command is used to set the global return value without immediately returning.