Skip to main content

Function

Function

The function node allows you to use custom javascript code to process within the flow.

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

Return codes

  • Return 1+ to specify which output is to be called. Define the number of outputs using the "Outputs" fields. This will add more output connections to the node
  • Return 0 to complete the flow successfully. This will immediately stop the flow and mark it as successful
  • Return -1 to indicate an error and stop the flow. This will mark the flow as unsuccessful.

See Scripting for a complete reference

See Function Examples for examples