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.

calcuation between 2 numbers and given result

Featured Replies

Hi,

 

I am trying to sort a calculation which is solved by the following.

"field a" has a range between 0001 and 9999

so if "field a" is between 0001 and 0999 I need to give field b a result of "yes"

 

i tried this. 


If ( fieldA ≥ 1 & fieldA ≤  999; "yes"; "" ) but it did'nt work.

36 minutes ago, Ben Ball said:

If ( fieldA ≥ 1 & fieldA ≤  999; "yes"; "" ) but it did'nt work.

"it did'nt work" is not a good description of a problem. What does fieldA contain, and what is the result you get? 

Also, is fieldA defined as a Number field? You say it "has a range between 0001 and 9999". Numbers do not have leading zeros - and if you want to compare a text value to a number, you must convert it to a number first.

 

Edited by comment

  • Author

Yes ok.. apologise if it was unclear, but  I did write that field A contains values between 1 and 9999

I now know why it did'nt work. I should have written "and" not &.

the returned value would be 1 then, not yes.

 

thanks for the comment..

 

 

 

 

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.