Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

for some reason this isnt working? am i doing it wrong? confused.gif

If [dmvselection = "Transfer Fee"]

15

Else If [ dmvselection = "needs DMV" ]

(cashprice * .065) + 50

Else

0

End If

says Specified field cannot be found and highlights the if on the first line

Posted

Hi Adam. Are you working on a script or a calculation? It's tough to tell from the way this is laid out. Your last comment indicates that maybe this is a calculation--if so, check to make sure you have typed "IF" and not "LF". FM is not recognizing that first word as a reserved word, so it must not be "IF". Also, Else statements cannot be used in a calculation. You'd be better off with:

Case ( dmvselection = "Transfer Fee" , 15 , dmvselection = "needs DMV" , (cashprice*.065)+50 , 0 )

Jerry

Posted

I would be quite surprised if this worked. You have three results specified for a function that only allows two. You might be able to use nested Ifs, but this is much easier using Case anyway.

This topic is 7443 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.