January 26, 200521 yr I have a script calling up a dialogue with several choices. When one of those choices is selected I want the script to end and another file to open. I have that step as the last step in the script ie the last lines of the script are: If status(currentmessagechoice)=2 open(filename) endif. But the script finishes itself in the original file, no matter what I do or try. Can someone help me with this?
January 27, 200521 yr Author Soren, thanks for your reply. The complication is that one of the other choices is to exit the script without opening the new file (I obviously should have mentioned this). If I have interpreted it correctly, your suggestion would open the new file regardless. In any case, I always thought that if you exited a script the script ends at that point without doing any more of the script.
January 27, 200521 yr Right you interpreted, but didn't make a tryout apparently ...it's certainly not opening the second file regardless! You can change it slightly to ask if Status(CurrentMessageChoice) different from 2 and then repeat the algorithm inside the outer if'ing... Do you follow the reasoning??? --sd
January 27, 200521 yr Another way to ensure you end up in the opened file is to run an external script in the other file that has a "Halt script" as the last action.
Create an account or sign in to comment