Page 1 of 1

Using an eValid script to call upon another script

PostPosted: Mon Jun 12, 2023 2:50 pm
by IMorris
Hello.

Can eValid scripts call one another script during a playback?

Thank you very much.

Re: Using an eValid script to call upon another script

PostPosted: Tue Jun 13, 2023 12:52 pm
by eValid
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