KurtW Posted August 17, 2004 Posted August 17, 2004 Hi all: I have a question regarding what FM means when they say 'Exit Script Step exits sub/external scripts and returns control to main script.' Do they conside the 'Main Script' to be whatever script is one-level outside the currently running script, or do they mean you jump back to the 'outermost' level? Here's what I mean: '---- Level #1 --------- Do Something Cool Do Something Else Cool If [something happens uncool] ...'----- Level #2 -------- ...Make it better ...Make it even better ...If [it's really better now] ......'----- Level #3 -------- ......Wow ......great ......Exit Script ************** ...End If Else ...Sorry, you broke it! End If ... would the Exit Script in 'Level #3' (for lack of a better term) return you to what was happening in Level #2 subscript, or would you jump all the way back out to whatever happens next in Level #1? The definition seems to say you would jump back one level, but in practice it seems to me to be going all the way out to my outermost script. But I don't know if it's SUPPOSED to or if I have screwed something else up. Thanks Kurt
-Queue- Posted August 18, 2004 Posted August 18, 2004 Are your Levels sub-scripts or If steps? Exit Script returns control to the calling script/sub-script for the current script and acts like a Halt Script if used in the main script. So an Exit Script in an If step in a main script (regardless of how 'deep' it may be) aborts the entire script. Just for clarification, a sub-script is one that is called via Perform Script within the main script or another sub-script.
Recommended Posts
This topic is 7406 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now