Flow Operations > Code
Learn how to use our all-new block type Code, that allows you to easily add code within a block and trigger easter eggs!
The code in this blocks will be active only when the visitor passes through this point. So functions in the block don't have a global scope
How to use it the Code block
This code will be embedded inside <script> </script> tags, so there is no need to add them, as you can see below. In this example, when the visitor passes through this block, a "hello world" will be printed in the console
Code block and Add JS (Custom scripts) [Design/Advanced section]
Code in the Add JS section, are global, as soon as the footer of the bot is loaded in the web, it is ready to use. This is the place to set up, "global" functions and variables with global scope.
Even if they are placed in different sections, code can communicate easily as you can see below. Using the Code blocks to trigger the global