Hi There:
I am wondering if there is a way to get eSignal to stop calling to an external EFS after being called.
In my "calling" script, I call to an external efs script using this code:
var Count = 0;
var Test = null;
function main() {
switch (Count) {
case 0:
Test = efsExternal("Scriptname.efs");
Count++;
break;
case 1:
Test = null;
break;
}
return Count;
}
And in the other script I put in a simple "debugPrintln("Running ..."); within the main() function. Here is the code:
function main() {
debugPrintln("Running ...");
}
What I want to do is when the Count variable is equal to 1, to stop the efsExternal() from running. This is very important to me because I have a single script that is called to handle getting out of a trade that may be called 40 times a day with different variables passed to it. However when I'm done with calling the script I want the called script (external one) to stop running.
Sorry if this sounds confusing ... my programming knowledge is self taught so there will be many things that might look odd to a trained programmer.
Thanks,
Corey
I am wondering if there is a way to get eSignal to stop calling to an external EFS after being called.
In my "calling" script, I call to an external efs script using this code:
var Count = 0;
var Test = null;
function main() {
switch (Count) {
case 0:
Test = efsExternal("Scriptname.efs");
Count++;
break;
case 1:
Test = null;
break;
}
return Count;
}
And in the other script I put in a simple "debugPrintln("Running ..."); within the main() function. Here is the code:
function main() {
debugPrintln("Running ...");
}
What I want to do is when the Count variable is equal to 1, to stop the efsExternal() from running. This is very important to me because I have a single script that is called to handle getting out of a trade that may be called 40 times a day with different variables passed to it. However when I'm done with calling the script I want the called script (external one) to stop running.
Sorry if this sounds confusing ... my programming knowledge is self taught so there will be many things that might look odd to a trained programmer.
Thanks,
Corey
Comment