Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Calculations

$
0
0

I am rarely new to LiveCycle and Java Scripting and needs some help.

 

I need to know how to script a field based on the percentage of another.

 

I currently have points.rawvalue =percentlost.rawValue / .005 * 10 , that works however if the percentlost.rawValue is less than .005 I do not want it to multiply by 10.

 

Basically i am giving points based on a percentage lost and my points system is.

 

0 - 0.4% = 0

0.5 % -0.9% * 10

anything over 1& * 20

 

Hope someone can help.


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>