Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Macro name changed from html to html-bobswift during server to cloud migration processing.

...

At times, it is useful to be able to exit from processing a single script file in the middle of that script file if certain processing conditions are not correct. For this, UDM provides the return command, which takes the following format:

Panel

Html bobswift

<pre>
return [value]
</pre>


The return command stops processing of the current script and returns control to the calling script at the point immediately following the script call (just as if the script had executed completely without calling the return command). If there was not a calling script, and UDM is not running interactively, UDM will exit. The return command also can be followed by an optional value. If this is the case, the UDM return code (held by the _rc built-in variable) is set to this value upon executing the return command.

...