Jump to content

BSL:Tutorial/Scratch: Difference between revisions

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 '''{''' nad copy out everything inside "main" into "logic". Type <tt>fork logic</tt> in main. It should look like this :
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>
Anonymous user