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.

Else?

Featured Replies

Once upon a time I remember reading somewhere that one should always include the ELSE statement in your If / End If even if you don't need it because FileMaker will run the script faster if you do. Here's an example of what I mean:

If ["MyName = "Ted""]

Show Message ["Hello Ted"]

End If

This is what I have seen recommended in the past:

If ["MyName = "Ted""]

Show Message ["Hello Ted"]

Else

End If

Does the ELSE actually speed things up? I personally haven't noticed any difference.

Version: v6.x

Platform: Windows XP

I did a quick speed test using a loop with 10 if-then else vs if-then. The loop without the else took 2:06 the loop with the else took 2:17. The else added 11 seconds, about 8% to the time of this loop.

I had heard this years ago, there is no fundemental reason the else will make things faster, it must have been inefficient coding inside of FileMaker. In normal programming languages (and FM6), the else slows things down even if nothing is executed (in good languages an optimizing compiler would notice that the else does nothing and it wouldn't add any code for it).

I thought the Else statement was Good Programming Practice, needed to avoid 'dead end' programming, which, alledgedly, is an abbhoration in the eyes of the Coder?

The "Else" statement became part of programming languages years ago in order to get rid of the Goto statement which was a primary contributor to bad program design. But, that doesn't mean you need to use it all the time.

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.