Skip to content

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.
func-declare
To rename the function, click the do something area and enter a new name for the function.
Declares a function with a return value.
func-declare-with-return
To rename the function, click the do something area and enter a new name for the function.
Declares function arguments.
func-args
func-args2
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.
func-if-return

Calls the function declared above.
func-call-no-return
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.
func-call