Skip to main content

Function

icon
Function

The function flow element allows you to use custom JavaScript code to process within the flow.

It can let you make decision paths based on previous flow elements, compute variables for future flow elements, log information, and many more features.

Return Codes

NumberDescription
1+Specifies which output is to be called. Define the number of outputs using the Outputs field. This will add more output connections to the flow element.
0Completes the flow successfully. This will immediately stop the flow and mark it as successful.
-1Indicates an error and stops the flow. This will mark the flow as unsuccessful.
tip

See Scripting for a complete reference

See Function Examples for examples