Skip navigation
beardjeff
Currently Being Moderated

If statement

Aug 11, 2010 11:44 AM

Please have mercy on me and my headache!

 

I'm tripping over my own feet at this point.  All I'm trying to do is a simple if..then..else function and getting no where.  Here's what I've put in:

 

if(ProjectedADC>RehabBeds)then((RehabBeds-ADC)*400000)else((ProjectedA DC-ADC)*400000)

 

I've checked and I have FormCalc selected as the language, and the individual statements function without the if..then..else, but when I put them together, nada.

 

This problem is probably staring me right in the face.  The error I get when trying to preview the form is:

 

Script failed (language is formcalc; context is

xfa[0].form[0].ExistingRevenueOpp[0].#subform[0].ExistingRevenueOpp[0] )

script=if(ProjectedADC>RehabBeds)then((RehabBeds-ADC)*400000)else((Pr

ojectedADC-ADC)*400000)

 

Error: syntax error near token ')' on line 4, column 0.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points