Hi can someone let me know if I am on the right track with this calculation
and also why I'm getting a "syntax error 4: at line 5"
var a = this.getField("Check_Box_1").value; if(a == 1) //event.value = No_cards_in_pack_Row_1 * 0.35; // else if (b < = 1) var b = this.getField("more_than_1_pack_state_quantity_Row_1").value; // event.value = pack_price_10_per_cent_off_2_or_more_Row_1 * b;//
With Thanks
The less than or equal operator is '<=' and not '< ='.
The '//' string is the value used to mark the start of a single line comment. The ';' is the JavaScript line terminator. There is also a pair of marks for marking multiple line comments.
George Kaiser