Link to home
Start Free TrialLog in
Avatar of PresidentLincoln
PresidentLincolnFlag for United States of America

asked on

Crystal Reports - Help with if...then...else formula

I am attempting to use a formula for a group, so the group header will be conditional based on a specific setting.  Here's what I have:

if {Command.PRODUCT} in ('Auto Loan','Boat Loan','Motorcycle Loan',) then {Command.HEADER}="Vehicle Loan" else {Command.HEADER}

Open in new window


The idea is if the PRODUCT is any of those 3 types of loans, the group header will be "Vehicle Loan", otherwise it will be the default.   The problem is I keep getting this error:

The ) is missing.

Open in new window


I know this is a syntax issue, but I can't figure out what to do to fix it.  Any assistance would be appreciated.
ASKER CERTIFIED SOLUTION
Avatar of James0628
James0628

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of PresidentLincoln

ASKER

@James thanks.  I was way off on this one.  

Avatar of James0628
James0628

 You're welcome.  Glad I could help.

 James