Developing Apama Applications > Apama EPL Reference > Statements > Transfer of control statements > The return statement
The return statement
The return statement ends the execution of an action and control is transferred to the action’s caller, at the point following the action call (which might be in the middle of an expression). Any statements between the return statement and the end of action are not executed.
ReturnStatement
If the action does not have a returns clause then an expression is not permitted in the return statement.
If the action has a returns clause then an expression whose value is the action’s return value is required in the return statement. The expression type must match the type specified in the returns clause.
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.