pkudrle Posted September 5, 2003 Posted September 5, 2003 I want a script to exeute a different script if it can't find similar records. I have a script that grabs the name of a title, then goes to another database and searches for similar items with the same title. What I would like to happen is that instead of getting the screen, "no records match this request", the original find script would instead execute a different script. So basically some type of if then statement, but how do I use scriptmaker to execute this? Thanks, Paul
-Queue- Posted September 5, 2003 Posted September 5, 2003 Use Set Error Capture [On] at the beginning of your script (or at least before you do the find). Then use either If (not Status(CurrentFoundCount)) or If (Status(CurrentError)) immediately after your Perform Find script step, and put your alternate script after the If statement, followed by an Else with the normal procedure after that.
pkudrle Posted September 5, 2003 Author Posted September 5, 2003 That was the ticket. worked great, thanks, Paul
Recommended Posts
This topic is 7753 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