5 Replies Latest reply on Sep 21, 2010 1:05 PM by Frinholp

    Calling scripts from within scripts and exiting both on the same condition.

    Frinholp

      Title

      Calling scripts from within scripts and exiting both on the same condition.

      Post

      Hi all

      I am calling a Script B  from within a Script A. Halfway through Script B, a test is performed  to determine whether a condition is met, and if so the script is exited.

      How is the best way to exit Script A also at that point?

      Currently I am using a boolean which is set to true if the condition is met in Script B, then when Script A resumes  the boolean is checked. If it has a true value, Script A is exited also.

      Is there a better way of doing this?

      BTW the boolean is being stored as a global variable.

      Thanks in advance

      Lee