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

Featured Replies

In FMP 6, I used to be able to do (all number fields);)

(If(Field>"1","1","0")

In FMP 9, the expression evaluates to "1" if Field is indeed greater than 1, but if Field is empty, I do not get a "0", I get a null value.

I tried the inverse

(If(Field="","0","1") I get the same result.

What's up?

Peter

Edited by Guest

If you want to get a result when Field is empty, uncheck the "Do not evaluate if all referenced fields are empty" option. I don't think it worked any other way in version 6, too.

BTW, if Field is a Number field, then you should compare it to a number, not to text (i.e. get rid of the quotes). And this:

If ( Field > 1 ; 1 ; 0 )

can be written simply as:

Field > 1

or, if you like:

GetAsBoolean ( Field > 1 )

The last version will evaluate even if Field is empty and the option mentioned above remains checked.

  • Author

Thank you! It looks like FMP 9 checks that box by default, FMP 6 did not.

Peter

Create an account or sign in to comment

Important Information

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

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.