Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How To create IF AND OR formula

Status
Not open for further replies.

twkyoscr

Technical User
Aug 29, 2001
22
US
Trying to create a formula in Crystal 8.01 that is basically this:

if a = 0
and b=c or b = d then "Text" else
remaining formula

I am abel to do if and statements but I need the if and or. Any thoughts?

Thanks!
 
It depends on whether you mean:

(a = 0 and b=c) or b=d

or

a = 0 and (b=c or b=d)

I'm guessing you mean the latter. You don't really need to use the "or," in that case. The formula could instead be:

if a = 0 and
b in [c,d] then
rest of your formula

If you mean the first case, then be sure to use parens.

-LB


 
Nothing prevents you from doing this, or is supported

But you haven't identified what you mean in your OR, and I don't think that you really need an OR, try:

if a = 0
and
b in [c,d] then
"Text"
else
"Jerky"

-k
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top