mbroad02
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.
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.
Assignment is := not =:
ASKER
correct--sorry
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.