Link to home
Start Free TrialLog in
Avatar of mbroad02
mbroad02Flag for United States of America

asked on

Multiple line IF statement in Crystal Reports

I need to create a multiple line IF statement using Crystal Report (formula editor).  I am attempting to debug where a caculation error is happeneing.
I need to do something like this:

If amount > 0
               then
                      Amt_variable =: Amt_variable + 30
                      string_variable = : "added 30 to Amt"
else
                     Amt_variable =: Amt_variable + 100
                      string_variable = : "added 100 to Amt";
string_variable;

I wish to see which part of the IF is being executed for each record and then display the result at the end of the IF.

Is some sort of continuation character required?

I would appreciate your help.

         
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Assignment is :=  not  =:
Avatar of mbroad02

ASKER

correct--sorry
ASKER CERTIFIED SOLUTION
Avatar of peter57r
peter57r
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial