end main script called separately when running a label script
Posted: 22 Jan 2024 12:19
I have a situation where, in a CTB, I call out a script with label and then load the main script separately as shown below:
There is a condition which is encountered when running the script with label where I would like to end not only the label script but the running of the main script. The end statement even with the scope of "0" or "1" will only end the label script as expected, but since the main script is called out separately, it still will run. So that's expected also. I can set a perm variable in the label script such that if the variable is a certain value then the main script would end at the very start. Would there be any other way to accomplish this that I may have missed? Thanks.
load "<xyscripts>\RecentFolders&Favs.xys", "_loadrecent"; load "<xyscripts>\RecentFolders&Favs.xys";There is a condition which is encountered when running the script with label where I would like to end not only the label script but the running of the main script. The end statement even with the scope of "0" or "1" will only end the label script as expected, but since the main script is called out separately, it still will run. So that's expected also. I can set a perm variable in the label script such that if the variable is a certain value then the main script would end at the very start. Would there be any other way to accomplish this that I may have missed? Thanks.