JS Code block
Last updated on April 10, 2024
English version of the documentation is under development.
This block is designed to execute arbitrary JavaScript code in the script.
The code must be entered in the JS Code field.
Unlike with other blocks, when calling variables in the JavaScript code of the JS Code block, you must specify the full path to the variable:
$session.<variable name>
The logic set with the JS Code block can also be implemented with the Code script
tag.
You can also use the JS Code block to connect the payment for products feature in the smartapp.