Home
Crystal Reports Training
Crystal Reports XI
Crystal Reports .NET
Crystal Reports Forum
News
Tech Support
Active Topics
Memberlist
Search
Help
Register
Login
Technical Questions
Crystal Reports Forum
:
Crystal Reports 9 through 2022
:
Technical Questions
Topic: If then else statement
Author
Message
bremen
Groupie
Joined: 28 May 2013
Online Status: Offline
Posts: 93
Topic: If then else statement
Posted: 19 Jun 2013 at 5:32am
I am trying to creat an if then else state statement, but Im not sure how to properly format it.
if {Table1.Field1} = "X" then "Y"
if isnull{Table2.Field2} then "Y"
else
{Table3.Field3}
How would I arrange that?
IP Logged
Sastry
Moderator
Joined: 16 Jul 2012
Online Status: Offline
Posts: 537
Posted: 19 Jun 2013 at 6:27am
Hi
Try this :
if {Table1.Field1} ="X" and isnull({Table2.Field2}) then "Y"
else {Table3.Field3}
or
if {Table1.Field1} ="X" or isnull({Table2.Field2}) then "Y"
else {Table3.Field3}
Edited by Sastry - 19 Jun 2013 at 6:28am
Thanks,
Sastry
IP Logged
bremen
Groupie
Joined: 28 May 2013
Online Status: Offline
Posts: 93
Posted: 19 Jun 2013 at 6:38am
Thank you. That got it.
IP Logged
Printable version
Forum Jump
-- Select Forum --
Announcements
Talk with the Author
Self-Publishing
Job Postings
New feature request
Report Design
Data Connectivity
Technical Questions
Tips and Tricks
Crystal Xcelsius
Report Design
Data Connectivity
Writing Code
Tips and Tricks
Report Design
Data Connectivity
Writing Code
Tips and Tricks
You
cannot
post new topics in this forum
You
cannot
reply to topics in this forum
You
cannot
delete your posts in this forum
You
cannot
edit your posts in this forum
You
cannot
create polls in this forum
You
cannot
vote in polls in this forum
HOME
|
FREE EBOOK
|
PROGRAMMING GUIDE
|
PURCHASE
|
REVIEWS
|
CONTACT ME
|
FAQ
|
LINKS
|
PRIVACY
|
CLICK PLAYS
|
KONACAD
© 2004-2026 Brian Bischof. All Rights Reserved.