I tried looking around for this but couldn't find anything specifically addressing it.
I'm just trying to figure out if the variables in a plugin and my script file, or even the command line, are all in the same script space. Can I do
in a plugin and then
in a script file function/CLI or vice versa and have it act as I'd expect?
I'm just trying to figure out if the variables in a plugin and my script file, or even the command line, are all in the same script space. Can I do
_G["testvariable"] = "foo"in a plugin and then
print (testvariable)
-> fooin a script file function/CLI or vice versa and have it act as I'd expect?