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.

Number limit of Else If statements

Featured Replies

OOPS, have just realized I posted this in the wrong area. I was reading a calculation post and forgot where I was.

Is there a limit on how many Eles If statments a script can have (I dont think a Case Statement will work for our project).

If I have counted correctly we will have about 20 Else If statments.

If 20 is not a problem, then just for a reference, is there a limit? We run a Filemaker Server 11 and Filemaker 11 Pro on our workstations (not sure if there was a limit based on version).

Michelle

I am not aware of any such limit. If there were one, it would be more likely of how many steps can you have in a script - regardless of what those steps are. However, no such limit is listed in the tech spec.

  • Author

Thank you for the reply. That would make sense as to the number of script steps rather than a specific script step.

ML

When a script has that many Else If statements, I start to wonder if it would be easier to maintain as a group of smaller scripts rather than one giant script. Depends on its purpose, of course.

See: http://en.wikipedia.org/wiki/God_object

  • Author

Wow, I never even thought of that. I think that may be a cleaner solution for our schools database.

It's arguably a matter of programming style, but I gravitate toward the style of manageable chunks of code, also called "what happens if I get hit by a bus?"

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.