Avatar

Level 3

Thanks! I modified it to this: (and it works). The tax rate is a user entry.

if ($ == 1) then

stateTax = stateTax + (unitPrice * quantity * stateTaxPercent / 100)

elseif ($ ==0) then

stateTax = stateTax - (unitPrice * quantity * stateTaxPercent / 100)

endif

Thanks again!