...
Functions are defined on the "Variable Dependencies" tab (see image). The standard way to set up functions is:
- In the "Expressions" box type the text "main()"
- In the "User Defined Functions" box type the text "function main()" and then type out the function
- Don't include the quotes from the text main() and function main() above
...