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.

Values and conditions in FileMaker Pro 7

Featured Replies

  • Newbies

Hi,

I'm a newbie with Filemaker Pro 7...I want to create a formula as follow:

I have a value1 and I have a conditions to have a result in value2

If value1 is < 1 then the value2 is 10

If value1 is > 1 and < 5 then the value2 is 20

If value1 is > 5 and < 10 then the value2 is 30

and so on....

How can I make this in Filemaker?...Please help!!! confused.gif

What do you mean 'and so on'? I don't see a pattern here.

And what happens when value 1 = 1 or value 1 = 5, and so on?

Would love to use Choose() here but you are correct - it's missing 1,5 etc.

Hard code could be:

Case(

Value1 < 1; 10;

Value1 < 5; 20;

Value1 < 10; 30

)

... and so on.

Post deleted by LaRetta

I don't know if it works or not - because I don't know what it is supposed to do. There are only three ranges - and you assume one of them to be an exception. That is not enough data.

FWIW, I think you can achieve the same result by:

Case ( n < 1 ; 10 ; 10 * ( Div ( n ; 5 ) + 2 ) )

Or, if you'd like the boundaries fall the other way:

Case ( n <= 1 ; 10 ; 10 * ( Ceiling ( n / 5 ) + 1 ) )

But writing formulae that hit some arbitrary target with arbitrary input is not my idea of fun. Let the poster clarify the logic behind this, and the formula will practically write itself.

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.