Matrixxdg Posted March 26, 2013 Posted March 26, 2013 Hi All, If then Statements are not my strong point. If anyone could point me in the right direction I would appriciate it. I have a script that looks to see if the person has already left his information at the desk. If so, when he checks out the clerks get a custom dialog box reminding them to send the customer to the other desk. Currently, if I click either "Ok" or "Cancel" it continues on with the script. I would like when the "Ok" button is clicked the script continues, if I click the "cancel" button it returns to the original layout. Below is my current script. Thanks everyone...MG +++++++++++++++++++++++++++++++++++++++++++ If [customer::ccInVault="Yes"] Show Custom Dialog ["Credit Card on File"; "This person has vaulted there card."] If (Get(LastMessageChoice) = 1) Go To Layout ["Reports Menu"(Catalog)] Else If [Get (LastMessageChoice) =2] Go to Layout ["Bidder Menu" (Bidders)] End If End If End If
LaRetta Posted March 26, 2013 Posted March 26, 2013 Hi MG, try it like this: If [customer::ccInVault="Yes"] Show Custom Dialog ["Credit Card on File"; "This person has vaulted there card."] If (Get(LastMessageChoice) = 1) Go To Layout ["Reports Menu"(Catalog)] Else Go to Layout ["Bidder Menu" (Bidders)] End If .... Do anything here if the ccInVault does NOT equal 'yes' End If
Matrixxdg Posted March 26, 2013 Author Posted March 26, 2013 Thank you so much LaRetta...worked great
Aussie John Posted March 27, 2013 Posted March 27, 2013 Don't forget to correct the spelling error in the dialog.
Recommended Posts
This topic is 4259 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