return ?-code code? ?-errorinfo info??-errorcode code? ?string?
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.
In the usual case where the
Normal return: same as if the option is omitted.
Error return: same as if the error command were used to terminate the procedure, except for handling of errorInfo and errorCode variables (see below).
The current procedure will return with a completion code of TCL_RETURN, so that the procedure that invoked it will return also.
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.
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 must be an integer; it will be returned as the completion code for the current procedure.
Two additional options,
Windows Server 2012. Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019.
PTC MKS Toolkit for Power Users
PTC MKS Toolkit for System Administrators
PTC MKS Toolkit for Developers
PTC MKS Toolkit for Interoperability
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.3 Documentation Build 39.