Skip to main content

Return

The following table provides information regarding the 'Return' SFCodeBlock.

Return SFCodeBlock

CategoryProgramming
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
ParametersNone
Pattern SupportNone
ReturnsNone
ConfigurationExec Analytic SFCodeBlock


Example: 'Return' SFCodeBlock

In this example, the 'Function' terminates when a certain condition is verified by the 'If Then' SFCodeBlock.

Return SFCodeBlock