Functions¶
The Functions category includes blocks for creating local functions, which can be used within the scope of a single API service method, an event handler or a timer. For reusable functions, see the Function Library section of the documentation.
| Block name |
Block rendering |
|
|---|---|---|
| Declares a function without a return value. |
![]() |
To rename the function, click the do something area and enter a new name for the function. |
| Declares a function with a return value. |
![]() |
To rename the function, click the do something area and enter a new name for the function. |
| Declares function arguments. |
![]() ![]() |
To declare a function argument, click the gear icon and drag the input name block into inputs. The default argument name is x. To rename the argument, click x and enter new argument name. |
| Conditional return statement. |
![]() |
|
| Calls the function declared above. |
![]() |
Notice the function declaration does not have a return value. As a result, the block to call the function has the appearance of a procedural block. |
| Calls the function which returns a value. |
![]() |






