SYNOPSIS
return ?-code code? ?-errorinfo info??-errorcode code? ?string?
DESCRIPTION
Return immediately from the current procedure (or top-level command or source command), with string as the return value. If string is not specified then an empty string will be returned as result.
EXCEPTIONAL RETURNS
In the usual case where the
- ok
-
Normal return: same as if the option is omitted.
- error
-
Error return: same as if the error command were used to terminate the procedure, except for handling of errorInfo and errorCode variables (see below).
- return
-
The current procedure will return with a completion code of TCL_RETURN, so that the procedure that invoked it will return also.
- break
-
The current procedure will return with a completion code of TCL_BREAK, which will terminate the innermost nested loop in the code that invoked the current procedure.
- continue
-
The current procedure will return with a completion code of TCL_CONTINUE, which will terminate the current iteration of the innermost nested loop in the code that invoked the current procedure.
- value
-
Value must be an integer; it will be returned as the completion code for the current procedure.
The
Two additional options,
The
If the
PORTABILITY
Windows 2000. Windows XP. Windows Server 2003. Windows Vista.
AVAILABILITY
MKS Toolkit for Power Users
MKS Toolkit for System Administrators
MKS Toolkit for Developers
MKS Toolkit for Interoperability
MKS Toolkit for Professional Developers
MKS Toolkit for Enterprise Developers
MKS Toolkit for Enterprise Developers 64-Bit Edition
MKS Toolkit 9.2 Documentation Build 16.