The code flow object allows JavaScript code to be run against the messages that are passed through it.

Code field | Input area for the JavaScript code. You can use ?input.keyname? in the code to read the input key elements from the input message. The JavaScript code must return data structured in JSON format.
Output field | Input area for the output message in JSON format. You can use ?code.keyname? to access the key elements returned by the JavaScript code and ?input.keyname? to access the input key elements from the input message.

Hint
In an empty Output field, press i for "?input.key?", c for "?code.key?", and a for "?api.key?" to generate the default JSON template.
Example:

Code field | if ("?input.status?" == "1" || "?input.result?" == "OK") { return { result: "OK", payload: "This is TRUE" } } else { return { result: "ERR", message: "This is FALSE" } }
Output field | { "result": "?code.result?", "payload": "?code.payload?", "message": "?code.message?" "status": ?input.status?, "newkey": "some addtional key for the next step" }