Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3197

Ending a nested script

$
0
0

Hello,

 

How do I end a script that has been called by another script such that the parent script then continues to run?

 

For example, I have a parent script that undertakes some calculations and then calls another script. I want the child script to check a condition and if that condition is not satisfied then I want the child script to stop and control to pass back to the parent script.

 

A problem is that the scripts I'm working with are pre-existing and long so I can't modify them too much. The child script currently checks for a condition and if it is not satisfied then it uses the function Autoquit. Unfortunately, that stop all scripts running, not just the child script. I would like an equivalent term that just ends the child script and passes back to the parent.

 

Regards,

 

Simon.


Viewing all articles
Browse latest Browse all 3197

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>