Return
The following table provides information regarding the 'Return' SFCodeBlock.
Return SFCodeBlock
| Category | Programming |
|---|---|
| Description | 'Return' terminates the execution of the Function in which it appears, and returns control to the caller. This SFCodeBlock can only be used in a function. Using the 'Return' in the Body block generates an error when the analytic is saved. |
| Input | |
| Parameters | None |
| Pattern Support | None |
| Returns | None |
| Configuration | Exec Analytic SFCodeBlock |
Example: 'Return' SFCodeBlock
In this example, the 'Function' terminates when a certain condition is verified by the 'If Then' SFCodeBlock.
Return SFCodeBlock