How to get value out of function
-
How do I make this result visible in the form field,- is there some kind of syntax error?
I want it to show the value of “result” var.
Kind regards
K
(function(){
var discount = 1;
var result = fieldname2*fieldname5*(3500*discount)+((fieldname4*400)*(fieldname2*fieldname5));if(fieldname5 = “1,5”) discount = 1;
if(fieldname5 = “1,6”) discount = 1,1;
if(fieldname5 = “1,7”) discount = 1,2;
if(fieldname5 = “1,8”) discount = 1,5;
if(fieldname5 = “1,9”) discount = 1,8;return result;
})()
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘How to get value out of function’ is closed to new replies.