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.

If, else calculation field

Featured Replies

I'm trying to create a field that displays a single number 0,1,2,3,4 depending on the following.

If field A is not empty, display "1"

if field B is not empty, display "2"

If Field C is not empty, display "3"

If Field D is not empty, display "4"

If field A is empty, display "0"

 

Thoughts?

What if a,b,c and d are not empty?

Try
 
Case (
not IsEmpty ( Field D ); 4;
not IsEmpty ( Field C ); 3 ;
not IsEmpty ( Field B ); 2 ;
not IsEmpty ( Field A ) ; 1; 
""
)
 
If you want it to be reflecting 0 then exchange  the “” to 0
  • Author

Mr Lee Smith, that worked!!! Thank YOU SIR!!

I must be missing something here. The Case function will return True for the first, and only the first, condition met.

Hi Lee,

 

I understand the Case function. i think I don't understand the op's original question. Returning a single digit from a number of conditions seems problematic.

I must be missing something here.

 

Obviously, there is an order of priorities at work here, that both Lee and Matthew understand and you and I don't.  Otherwise Matthew will be back with a follow-up question.

You made a good point in your first post, and I wasn’t sure what their final need would be. In fact, I fully expected the OP to post that they need a way of tracking which ones had data in them.

 

In any event I gave them a way to move the need down the road while taking the opportunity  to make it a learning process.

 

comment posted just as I was making this up, but I will post this anyway.

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.