Is there any way to pass variables between scripts?
It seems that I can not access variables that are declared global in one script from another script.
Ex.
In script 1:
:global 64kdownload 64000
On the command line:
:environment print
shows: "“64kdownload”=64000
In script 3:
/queue type set “user-download” pcq-rate=$64kdownload
Pardon me, but I am not sure I understand. What do you mean by “separate script”? I know I use <?php ?> for php, but I saw nothing of the brackets in the examples. I use none in mine unless to group stuff. If I am doing something that may cause me challenges, I would like to know. Maybe a reference or wiki?
BTW I do not use the commands unless assigning them or getting a return value. So it would always be
:local returnval [/command]
I do not use
/command
anywhere.
Actually I did see it, but … if the scripts are related say script1 call on script2, named variables can be used.
If one can’t call on the other then that won’t fly naturally.