Return

Exits the current function and returns task execution to the calling function. A return value can also be specified to the caller.

Declaration

<AMRETURN TYPE="VALUE" VALUE="text" />

Example

<AMRETURN TYPE="VALUE" VALUE="This is the value to return." />

See Also: Create Array, Create Object, Create Variable, Decrement Variable, Define Type, Increment Variable, ReDim Array, Set Variable

General Tab

Property

Type

Required

Default

Markup

Description

Value

Text

No

(Empty)

VALUE="return value"

If enabled, specifies a text return value. Enabling this parameter automatically disables the Contents of variable/dataset/array and Nothing parameters.

Contents of variable/dataset/array

Text

No

(Empty)

VARIABLE="varName"

If enabled, denotes contents of the variable, dataset, or array as the return value. Enabling this parameter disables the Value and Nothing parameters. This parameter is enabled by default.

Nothing

Yes/No

No

Yes

Null

If enabled, specifies no contents as the return value. Enabling this parameter disables the Value and Contents of variable/dataset/array parameters. This parameter is enabled by default.