Ron Cates Posted May 28, 2009 Posted May 28, 2009 If you set a variable within a script and then use perform script to call another script, does the variable carry it's value through the new script as well?
comment Posted May 28, 2009 Posted May 28, 2009 Yes, if it's a global $$variable. No, if it is a local $variable.
LaRetta Posted May 28, 2009 Posted May 28, 2009 ... then use perform script to call another script, does the variable carry it's value through the new script Only within the same file. If the script calls a sub-script from another file, that second script will lose the global variable value (unless you pass it via script parameter). The global variable will again be available to the main script after the sub-script returns control to the main script.
Recommended Posts
This topic is 5659 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now