Syntax error and no computation?
I am new to programming anything in an adobe created form; I am trying to calculate the shipping cost to be added to the subtotal of an order based on the quantity of items ordered. If the number ordered is less than 5, the shipping cost is 10% of the subtotal, if the number ordered is 5 or more, the shipping cost is zero. I wrote the following custom calculation:
var A=this.getField("TNB").value;
var B=this.getField("Subtotal").value;
var C=0.10*B;
if(TNB=>5){Shipping==0};
else {Shipping==this.getField("C").value};
I am getting the following error: "syntax error 5 at line 6"
Can someone help me
