July 12, 200520 yr 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!
July 12, 200520 yr 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
Create an account or sign in to comment