I haven't seen your solution but from reading what you have so far I am thinking you could accomplish all this much easier and less complicated using If-Else statements in one single script. Can you share the solution or scripts you are trying to work with?
Or at least give us an example of the code here so we can see what you have so far?
The Halt script step will halt all executing scripts so it would terminate both scripts A and B in one step. Whether this is a good idea or not would depend on details not given in your post.
The scripts are pretty long and hefty. One of the scripts in question (which would be Script B) in my example above is a validation script into which I am passing parameters. This script is used quite frequently within my solution so I would prefer not to have to keep duplicating the code in nested IF statements.
As I am passing parameters into a script, is it not possible to pass one out too? This would prevent me from having to declare a variable globally.
if he is passing around global variables for validation should he make sure the variable is made empty before halting the script also? Or does that get destroyed also?
(Just reading it all and putting in my two cents when this came to mind)
Ah. I have never used Halt Script before. Just read up on it in the documentation. This is exactly what I require. I assumed that Halt Script was used for another purpose for some reason.
The scripts in question are both safe to be exited at that point without any 'tidying up.'
Ignore my question on passing parameters out of scripts. I have just seen in the documentation Script Results. Now I just have to read up on how to use the results. At the moment my understanding is that the calculation type must be a string. I'll have to figure where I store this result, where to declare it as a variable etc.