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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi-expression formula

Status
Not open for further replies.

sharvey90

Technical User
Apr 20, 2004
18
US
Crystal 8.5
Goldmine 6.0

I'm trying to say the following w/my formula,

If fieldname (CONTACT2.UGSTVALUE) is equal to "0.00" OR
If fieldname (CONTACT2.UGSTVALUE) is empty then "Not Yet Renewed" else "Renewed"

I have the following,
IF (isnull({CONTACT2.UGSTVALUE})) then "Not Yet Renewed" else "Renewed"

But, I don't know what to add to say:
If fieldname (CONTACT2.UGSTVALUE) is equal to "0.00"

I've tried several things, but I'm not getting it.

 
NEVERMIND, I got it.

If {CONTACT2.UGSTVALUE} = '0.0' then "Not Yet Renewed"
else (If (isnull({CONTACT2.UGSTVALUE})) then "Not Yet Renewed" else "Renewed")
 
I would try:

if isnull({CONTACT2.UGSTVALUE}) or
{CONTACT2.UGSTVALUE} = "0.0" then
"Not Yet "Renewed" else
"Renewed"

The isnull clause should be first ordinarily.

-LB
 
As lbass says, you have to start with the null check. Otherwise Crystal will quit the formula when it finds a null value, and not bother about a subsequent test that would have handled null. Part of the design philosophy, and something we all have to get used to.

Madawc Williams (East Anglia)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top