Name
return
- return [-code
code
] [-errorinfoinfo
] [-errorcodecode] [string
] Return from a procedure, top-level command, or source command. Return
string
as the return value (default is an empty string).
Options
- -code
Return an error code, one of the strings “ok”, “error”, “return”, “break”, or “continue”, or an integer value.
- -errorinfo
Return an initial stack trace for the errorInfo variable.
- -errorcode
Return a value for the errorCode variable.
Get Tcl/Tk in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.