Subject:

**Issues with conditional modification of a variable using IF**
I Have tried to conditionally adjust a parameter depending on its value using IF, but I always get an error, probably the syntax is wrong but it would be great if someone could point me in the right direction. Please see my attempt below:

I am trying to adjust the "total" amount conditionally if the value of total is >1.

prm total = ((wp_phase1) + (wp_phase2)); : 0

If(total>1, prm total_adjusted = (total * 0.8);:0, prm total_adjusted = total ;:0);

I am trying to adjust the "total" amount conditionally if the value of total is >1.

prm total = ((wp_phase1) + (wp_phase2)); : 0

If(total>1, prm total_adjusted = (total * 0.8);:0, prm total_adjusted = total ;:0);