RETURN Command

RETURN — Transfer control out of a logic block.

Synopsis

RETURN [data_ref...]

Introduction

The RETURN command terminates processing of the current logic block, returning control to the caller. One or more values, as defined by the developer, may be returned.

Arguments

data_ref

Any single data reference, including hard coded strings and numeric values.

Example

. . .
. . .
LET L-Total_1 = CALL GetTotals_1 V-OrderNumber
LET L-Total_2 = CALL GetTotals_2 V-OrderNumber
RETURN L-Total_1 L-Total_2

Related Commands

CALL PARAMETER