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 © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.