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.

testing against a two digit number

Featured Replies

Hi, I have the following calculation in one of my database fields. The test will check if a specific field has a value of 3 or above, and if so marks Passed, otherwise marks failed. It works fine as long as the result of the field isnt a two digit number that starts with 1 or 2. (11, 21, 19, 25 etc) . The calculation below seems to only be evaluating the first number, not  the total number. 

 

If (  ( Initial Test Buffer PSID ≥  "3"); "Passed" ; "Failed")

 

another with the same issue, but 2 rather than 3: 

 

If (  ( Initial Test Relief Valve Opened at psid ≥  "2"); "Passed" ; "Failed")

 

 

I would love to hear feedback to how I can fix that. Thanks so much! 

Take the quote marks off the number.  They tell FileMaker to evaluate the number as a string rather than a number, which produces the result you are seeing.

 

( Initial Test Buffer PSID ≥  "3")  should be  (Initial Test Buffer PSID ≥  3)

Also make sure that Initial Test Buffer PSID is a Number field.

  • Author

Thanks so much! both those were precisely what I had wrong. Now its works perfect. Thank you for the VERY FAST responses. 

 

If (  ( Initial Test Buffer PSID ≥  "3"); "Passed" ; "Failed")

 

 

And just for future, you can drop that extra set of parentheses because they aren't needed, so it becomes:

 

If (  Initial Test Buffer PSID ≥  3 ; "Passed" ; "Failed" )

 

:-)

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.