Return command [EDI 4.2]

The Return command allows you to include an optional return code, which is passed to the program that called it. You can use the Return command in the main script of the executable and the DLL shared library versions.

You can use Counter or Constant type variables as return codes. In the case of of the DLL shared library version, if no return code value is assigned, a value of zero (0) is returned. The Return command itself, if executed inside a subscript called by Do, DoWhile, WhileDo, or RunThread, terminates the processing of the subscript. There is no value in specifying a return code in this instance because it is ignored. If you execute the Return command in the main script, the main script terminates.