To implement a Function, you will need to use Code Blocks.
There are two types of Code Blocks. Their main difference is that Code Blocks can either have a Code Block Connection or an Output Parameter.
The input parameter is on the right side of the Code Blocks and are the parameters that this Code Block needs to work. You should connect each Input Parameter with the Output Parameter of a different Code Block.
The output parameter is the result of the Code Block.
Example: In the Label Get Text, the output parameter is the Label’s current Text.
Code Blocks that have no Output Parameter can be chained together in order to create a group of Code blocks that will be executed in their specified order.
Code Blocks that execute an action have one Code Block Connection at the top and one at the bottom. Using these connections, you can chain different Code Blocks together and define their order of execution.
Note: the position of each block defines the order of the execution of its action. The Code Blocks are executed from top to bottom.
Every Input and Output parameter has a grey block when not connected. These grey blocks define the Data Type that this parameter supports. Only if there is a match between the Input and Output, they can be connected.
Tip: You can also use them to fast search for a matching Code Block.