Jump to content
Server Maintenance This Week. ×

open new file at end of script


This topic is 7028 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Right you interpreted, but didn't make a tryout apparently smile.gif ...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

Link to comment
Share on other sites

This topic is 7028 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.