Hi,
Not really, you cannot assign values to other fields using its field names (fieldname#) because the plugin replaces all texts with the structure fieldname# by the corresponding values before evaluate the equations.
Furthermore in javascript the symbol to represent decimal numbers is the dot (.), not the comma (,), the symbol for equality is “==” because the symbol “=” is used for assignment, and the condition below is incorrect because a number cannot be less and bigger than zero at the same time:
if(fieldname4 > 0 && fieldname4 <= 0)
I guess the fieldname20 is a calculated field, so, its equation is simply:
fieldname2*10
and I guess that fieldname4 is another calculated field, and its equation would be (you cannot use the same field you are evaluating in its equation):
(function(){
var r = fieldname6+fieldname7+fieldname8+fieldname9*0.5+fieldname10*1.5+fieldname11+fieldname12*10+fieldname13*3+fieldname14*3+fieldname15*1.5;
if(39 < r) return r+fieldname20;
if(r <= 39 && r != 0) return fieldname20+39;
if(r == 0) return 0;
})()
I’m sorry, but the support service does not includes the implementation of the users equations, if you are needing additional help, please, do not hesitate in request a custom coding service through my personal website:
https://cff.dwbooster.com/customization
Best regards.