troubleshooting Question

Use Select with prompt

Avatar of mtrout
mtroutFlag for United States of America asked on
Crystal Reports
9 Comments2 Solutions217 ViewsLast Modified:
Hello,
I would like to take a very long IF-THEN-Else statement and make into a case statements if possible.

What I have:
(if uppercase({?Location})='ALL'
then
true
else
if {?Location}='Washington, DC'
then
{Table_A.citystate} in ["Washington Area, DC","Washington, DC","Washington Navy Yard"]
else
if  (tons of more else if's)
else
{?Location}={TABLE_A.citystate})

The report prompts for a location and other prompts, but for this one (location), I was hoping to make case statements for the location.  Can you please assist?  Thank you.
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 2 Answers and 9 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 9 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros