February 15, 200718 yr Hi, I've got a calculation field that is running the following calculation: If ( field one = "x" ; field two) This achieves the desired results. But, I also want to check field one for "y" and return a different result. I assumed I could add another "If" statement or an "else if" or "else" but can't seem to get this to work. Is there another way to get this done? Thanks!! -Wing
February 15, 200718 yr Use Case ( ) Instead Case ( field one = "x" ; field two; field one = "y" ; field three )
February 15, 200718 yr Also, keep in mind that the Case () Statement evaluates each test expression in the order it is in and exits the case statement after it hits the first test expression that evaluates as true. So order of evaluation is important.
February 15, 200718 yr I perfer the Case over the If Statement because for me it is easier to read and write: BTW, the Online Help, under the If Statement, has this Note: If you have more than two possible results, consider using the Case function. Lee
Create an account or sign in to comment