Functions
expOrbit supports defining functions. Unlike variables, functions are global. You can access them "out of order" in files.
Defining
Functions are defined using the def keyword. They can be given any amount of parameters. Its important to note expOrbits does not currently support optional arguments.
Returning
Functions must return a value. This is done with the return keyword.
Functions can also have nested returns. When nesting and using conditionals, ensure your function always returns a value!
Global Functions
Functions are always global. This means you can call them out of order in expOrbit files.