Functions

With functions you can create your own blocks. This is useful if you often have to use the same code and don't want to have to drag and drop the blocks over and over again.

You start by taking the very first block, at the top of the category. You can now move all your blocks into this block and give the function a name in the text field at the top. By right-clicking on the function block, you can create your own block which you can then insert into your code and use. Whenever the block is triggered, it will do what is in the function.

Here is a picture to illustrate this: