The ‘Custom code’ function enables you to create your own block by writing a JavaScript code. In this JavaScript code, you can use both IF and FOR-LOOP statements. Any input to or output from the 'Custom code’ function can be defined using the input and output buttons below the Custom code.
Things to keep in mind:
Input variable's value can be used with "[]": var example = "[the name of your input variable]'
We support multiple returns: return a; return b;
The object path of a variable is the name with semicolon. Hence, return a;
becomes a
After having written your code, you can add a ‘Custom code’-block to your flow and copy paste the written code in the designated field.
We have set a timeout if your code is to complex, creates an error or runs too long. This will result in an error.
We currently support Node.js v6 - v12
Beta
This function is currently in Beta. Please report any bugs via the help button.