George Swisher Posted July 12, 2005 Posted July 12, 2005 I am trying to figure out why this script is not working correctly. I have a field called SendTo. That is a dropdown menu and validated from another database file. I have a script that will send email using AppleScript. Everything works great except when I add the if statment. I am trying to tell the FM script to full different field data based on the value of the SendTo field. It works when I only have two options. ex: If SendTo = TEAM perform AppleScript ABC else perform AppleScript ABD End if Now when I add the other if, I does not work right. If SendTo = "TEAM" perform AppleScript ABC if SendTo = "BOB" perform AppleScript ABE else perform AppleScript ABD End if Any help would be great. I am sure it is something simple but I am burned out with trying everything I can think of today. thanks!
-Queue- Posted July 12, 2005 Posted July 12, 2005 Insert an Else step before your second If, or it will not be performed unless the first If is true. If [sendTo = "TEAM"] Perform AppleScript ABC Else If [sendTo = "BOB"] Perform AppleScript ABE Else Perform AppleScript ABD End if End If
George Swisher Posted July 13, 2005 Author Posted July 13, 2005 great, thanks. I knew it was something simple
Recommended Posts
This topic is 7076 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