Usually, you have full access on global variables in other files, unless you defined them as static. Just make sure, the variable declaration is above its first use in the final script (which obviously is the case, when the one file includes the other)
Or use tools like the Galaxy++ editor, which will change the order automatically.
I have one file including another. When I want to access a global defined in the other file, I get a syntax error. What's the correct syntax for this?
variable = X? OtherFile.variable = X?
Usually, you have full access on global variables in other files, unless you defined them as static. Just make sure, the variable declaration is above its first use in the final script (which obviously is the case, when the one file includes the other)
Or use tools like the Galaxy++ editor, which will change the order automatically.