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.

IF - Multiple Conditions help!

Featured Replies

Hi People!

here is the scenario:

--------------------------------------------

IF { condition_1 AND condition_2} OR{condition_1 AND condition_3}

THEN

GOto [Layout_1] OR [layout_2]

---------------------------------------------

is this possible?shold I just make another script and separate the "OR"s condistions?

thanx_again!

If (condition1 and condition2)

Go to Layout[1]

Else

If (condition1 and condition3)

Go to Layout[2]

End If

End If

Is this what you mean?

  • Author

yes, I was just wondering when one 'has to stop' with the IF statements and how many are "too many" IFs and END IFs?

would your approach be "better"?

thank you!

Whatever works for you should be okay, especially with an example like this that doesn't take up much space.

  • Author

oh great!

I was getting worried that FM might "go crazy executing the IF-ing" laugh.gif

nice...thank you for re-assurace!

All the best!

If statements are fine but "If" they are too long use "Case".

John

Unforuntately we in the Scripts area here and there is no Case function for scripts, only for calculations ... unless they've added it to FileMaker 6 {crosses fingers} since I'm still stuck in FileMaker 5.5.

I'm sure I saw a tech note on www.filemaker.com about the max no of IF statements in script, but it's more than most of us would ever use before breaking the script down.

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.