Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

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!

Posted

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

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 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.