It is good to reflect two possible solutions here:
fileIn will do the same as run script or evaluate everything in the editor. It can make an accessible function if it is declared globally (it is not preferable to use as few globals as possible), if it was declared locally inside this script, you cannot get to it.
Include actually takes the code from this file and enters it at that moment. Therefore, if you have a large script and you want to streamline things a little, you can write certain functions to a separate file and include this function when the script is executed, so that the function will always be available because it is included in this volume.
source share