pdf-icon

Functions

What is a function?

Function is like a package, we can give a name to the function, put a program in the function, when the function is called, it runs the program it contains, in the case of multiple program repetition, the use of functions can save the length of the program, while making the program more concise and clear, while easy to modify.

Creating Functions

Click on the Functions option, drag the function body to the programming area, change the function name, and put the program into the function.

Using Functions

When you add a function body to the programming area, a function call block will appear in the Functions option, add it to the program.

On This Page