EasyManua.ls Logo

WhalesBot Eagle - Page 37

Default Icon
44 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
36
9. Customized code blocks
In a program, some of the code blocks may be exactly the same or the main program may be too
long. In this case, in order to simplify the program, you can customize a subprogram to contain
and simplify the duplicate code blocks. When you run the program, the program control goes to
the subprogram by following instructions. After the subprogram is run, the control returns to
the main program and subsequent code blocks.
Block
Snapshot
Description
Subprogram
The name of the subprogram.
Put this block under the
blocks to execute following
the main program.
Configure
subprogram
Configure the subprogram.
Put the blocks whose
execution procedure needs to
be simplified under this block.
10. C programming
You can use the C Code” block to write code in C language.