IMorris wrote:Hello.
Can eValid scripts call one another script during a playback?
Thank you very much.
Thanks for posting IMorris.
Yes, in part.
There are two commands of importance that you need to know about:
(I) Direct invocation: This is like a method invocation, and you can have some parameters.
CallScript runs with a tree, when done control returns to the invoking script -- just like it is supposed to!
CallScript "[PATH]script-name" ["Data-Substitution-Pair [Data-Substitution-Pair] "]
(II) Script Chaining: This passes control to a new script but doesn't expect to get control back.
GoScript "[PATH]script-name" ["Data Substitution"]
Important Note: Recursion isn't allowed, that is, A can't call A, etc.
But while first level recursion is checked and prevented, layers aren't.
So, if you really feel you have to you can do A > B > A... But CAUTION IS ADVISED!
-- eValid Support