Jump to content
Sign in to follow this  
Ron Cates

Variable and Perform Script

Recommended Posts

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?

Share this post


Link to post
Share on other sites

Yes, if it's a global $$variable. No, if it is a local $variable.

Share this post


Link to post
Share on other sites

Sweet!!

Share this post


Link to post
Share on other sites

... 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.

Share this post


Link to post
Share on other sites

Good to know. Thanks :P

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

By using this site, you agree to our Terms of Use.