Can anyone tell me what is wrong with this expression?
I'm using CR 8.5
{mtpm.stockno} is a string
{mtpm.item_cost} is a number
No matter what I do it will give me an error message tellimg me a 'boolean required here'. But it keeps jumping around no matter what I correct.
=========================================================
Expression:
if {mtpm.stockno} in ['10007','10058','10105','10005'] then {mtpm.item_cost} * 1.5 else
if {mtpm.stockno} = '10144' then {mtpm.item_cost} = 40.00
else {mtpm.item_cost} * 1.20
//I'm sure the problem is in the last 'else' but I can't figure it out.
kowen@rrwa.net
I'm using CR 8.5
{mtpm.stockno} is a string
{mtpm.item_cost} is a number
No matter what I do it will give me an error message tellimg me a 'boolean required here'. But it keeps jumping around no matter what I correct.
=========================================================
Expression:
if {mtpm.stockno} in ['10007','10058','10105','10005'] then {mtpm.item_cost} * 1.5 else
if {mtpm.stockno} = '10144' then {mtpm.item_cost} = 40.00
else {mtpm.item_cost} * 1.20
//I'm sure the problem is in the last 'else' but I can't figure it out.
kowen@rrwa.net