@WattsUp
Thanks for the quick reply.
But I’m not so sure if the subroutine is what I’m looking for.
When I’m saving a program into .script the subroutine takes my other file and copies its content in the main program.
As if under the hood it’s still a single file.
To give a bit more context:
I’m trying to write a custom .script driver file.
My problem is that I have two files that control different tools with shared variables with different values.
also, I want to have a script that dynamically calls different files with a string as an input.
You are correct that the subroutine just appends that to the main file.
you can write those subroutines and then take the .script file itself and load it as a script call.
I have never tried that, but it might allow that variability. I think it still appends to a single file though.