Jump to content

This topic is 5205 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

Hi,

I am trying to use nested If statements to calculate age brackets (young, middle-age, old) based on an age field.

This is my current script:

If(Age <= 35, "Young- 18-35",If(Age <= 64, "Middle Aged- 36-64", "Old- Over 65"))

The Young and Old categories are working just find, but the Middle-Aged just show as a question mark.

Anyone have any suggestions to modify the script?

Thanks!

Tegan

Stanford University

Using FileMaker Pro 6.0

Posted

Make sure the result type is set to Text, and that the field is wide enough. BTW, the Case() function is much better suited for this than nested If()s.

This topic is 5205 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.