Return – Visara Master Console Center Scripting Guide User Manual

Page 173

Advertising
background image

Chapter 5 Script Commands

Scripting Guide

173

RETURN

Syntax:

RETURN [Expression]

Description:

Returns execution to the calling routine, passing an optional return

value.

Action:

Execution of the current script stops, and resumes with the next

statement in the calling routine— either from a GOSUB command or
from a script call. All variables in a script are released when execution

is stopped. The optional Expression parameter is evaluated and

returned only to a calling script. The calling script can assign the
return value to a variable for further usage.

Parameters:

Expression. Numeric or string expression. Optional. Evaluates to

the value returned to the calling script. If not specified, the value is
null string “”.

Returns:

N/A.

Notes:

1. The RETURN command returns to calling routines in a “last in,

first out” order.

2. An error occurs if the RETURN command is used when no calling

routines exist.

Example:

N/A

See Also:

GOSUB

Advertising