The module located in Client interaction -> Code executor is designed to write and execute JavaScript code.
It can be configured to add buttons and input variables that will be available in the script.
The script's execution can be triggered by three kinds of events:
The script has access to several special functions to know what triggered the execution, to get the values of the input variables and to set output variables.
The Code executor on the right uses one of these functions:
This function creates a new property that can be then selected in the Variables out.
If you want to know what is the value of a variable at some point in the script, you can use the function console.log(value). It will print a line in your browser's console.
Configure the output of the Code executor and the input of the Display value module (Message) so that the message is visible after a click on "Execute"
Warning: the property can only be selected in output configuration if it already exists. It means that you have to execute the script once first before configuring the output.