SecondBASIC handles included files in the following order:
The main thing to remember when using external files is to keep your variable names, function names, sub-routine names, and line labels unique to the external file(s). For example, if you use the variable names x and y in both your main program and in the external file, you may cause unexpected results from different functions updating the same variables.
Let's get to some examples of using the $Include command.
The above is the contents of the file "IncludeFile.sbs". To use this in another project, you would just $Include the file and then call the routines as if they were in your main program.
And that's all there is to it. You may want to use paths, especially if the library/external files aren't in the same project folder.