BSL:Tutorial/Scratch: Difference between revisions
→Part 8: Forking and Separate Functions
| Line 272: | Line 272: | ||
== Part 8: Forking and Separate Functions==  | == Part 8: Forking and Separate Functions==  | ||
This is the part where we start moving commands out of "main". Create a new function called "logic" like this : type "func logic" two lines below the '''}''' of "main". Type '''{'''   | This is the part where we start moving commands out of "main". Create a new function called "logic" like this : type "func logic" two lines below the '''}''' of "main". Type '''{''' and copy out everything inside "main" into "logic". Type <tt>fork logic</tt> in main. It should look like this :  | ||
<tt>func void main(void)<br>  | <tt>func void main(void)<br>  | ||