Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

simple if statement not working

Featured Replies

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!

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

  • Author

great, thanks.

I knew it was something simple

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.