Minimum value
-
Hello,
can you please help me with this equation?
The calculation below is almost correct, except that I want to show value 60 when the calculated value is below 60.(function(){ var v = fieldname2*((fieldname16 == 'Euro') ? fieldname23 : 1)*((fieldname17 == 'Fizica') ? .0015 : .005); if(v <= 10) return 0; if(v <= 60) return 60; return ROUND(v); })()
Example:
if fieldname2 value is 5000, and fieldname16 in NOT Euro, and fieldname17 is Fizica
the calculation should be like 5000*0.0015=7,5and in this case I want to display 60.
Basically 60 is minimum that should be displayed, except when the result of the calculation is above 60.
Can you please tell me how to write this correct?
Thanks
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Minimum value’ is closed to new replies.