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 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.
AVAILABILITY
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.4 Documentation Build 39.