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.

Calc Statement Maybe if statement

Featured Replies

There is a Calculation involving 6 Fields I do not seem to get the right combination to work.

I have a First Name and Last Name Field

A Spouse Field and a Spouse Deceased Field

and a Deceased Field.

Case ( Spouse > 0; First Name & " & " & Spouse & " " & Last Name;

Spouse > 0 and Deceased Sp = "" ;First Name & " & " & Spouse & " " & Last Name;

First Name > 0 ;Full Name

)

I cannot get it to display correctly

I need the first name last name if no spouse

First name & Spouse Name if there is a spouse

"I get this one to work right"

I then need a calc to give the first name last name if the spouse is deceased

I then need a calc to give spouse and last name if the person is deceased

Thanks in advance.

I do not seem to get the check boxs to change the out come of the calc.

The deceased fields are check boxes I am using "yes" as the value.

Try testing for IsEmpty ( Spouse ) instead of Spouse > 0 - assuming Spouse is a Text field.

Try to think a little harder about the logical order. In your calc for example, [color:blue]Spouse > 0 and Deceased Sp = "" will never evaluate because when Spouse > 0 it will already have been handled by the first condition. I think what you want is this:


Case( 

/* I need the first name last name if no spouse */

  IsEmpty( Spouse ) ; First Name & " " & Last Name ; 



/* I then need a calc to give the first name last name if the spouse is deceased */

  Deceased Sp = "yes" ; First Name & " " & Last Name ; 



/* I then need a calc to give spouse and last name if the person is deceased */

  Deceased = "yes" ; Spouse & " " & Last Name ;



/* First name & Spouse Name if there is a spouse */

  First Name & " & " & Spouse & " " & Last Name

)

  • Author

Try to think a little harder about the logical order. In your calc for example, [color:blue]Spouse > 0 and Deceased Sp = "" will never evaluate because when Spouse > 0 it will already have been handled by the first condition. I think what you want is this:


Case( 

/* I need the first name last name if no spouse */

  IsEmpty( Spouse ) ; First Name & " " & Last Name ; 



/* I then need a calc to give the first name last name if the spouse is deceased */

  Deceased Sp = "yes" ; First Name & " " & Last Name ; 



/* I then need a calc to give spouse and last name if the person is deceased */

  Deceased = "yes" ; Spouse & " " & Last Name ;



/* First name & Spouse Name if there is a spouse */

  First Name & " & " & Spouse & " " & Last Name

)

Thank you that is the best anyone has done to explain those calc

Thanks again.

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.