Advanced Equation
-
I am using the advanced equation editor to make a custom calculator.
This part should return, in turn, 2%, 1.5%, 1% and .5% of the amounts specified. The equation works until 1.5% and thereafter continues to return 1.5% and not the lower % specified. The code is below. Thanks in advance for any help.
(function(){
if(fieldname2 <= 250000) return (fieldname2/50);
else if(fieldname2 > 250000 <= 750000) return (fieldname2/100*1.5);
else if(fieldname2 > 750000 <= 1750000) return (fieldname2/100);
else if(fieldname2 > 1750000) return (fieldname2/200);
})();
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Advanced Equation’ is closed to new replies.