End Expected
I have the following code in Table Level, at trigger after update, but im getting End Expected: if at line 9, column 2 (Im an absolutely newbie to coding)
let a := record(Marketplace,number(Marketplace)).'Min Sell Price';
let b := record(Marketplace,number(Marketplace)).'Max Sell Price';
let c := record(Marketplace,number(Marketplace)).'Min Units Sold per Month';
let g := record(Marketplace,number(Marketplace)).'Min Units Sold per Day';
if 'Avg Price' >= a and 'Avg Price' <= b then
'Average Price Val' := true
else
'Average Price Val' := false
if 'Month/Sales' >= c then
'Competitor Mo Sales Val':= true
end
1 reply
-
Looks like you need to close the first IF statment. Plus you need to add a semicolon since you are adding another IF statement after.
if 'Avg Price' >= a and 'Avg Price' <= b then
'Average Price Val' := true
else
'Average Price Val' := falseend;
Content aside
- 3 yrs agoLast active
- 1Replies
- 347Views