Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Calculations

Avatar

Level 1

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.

0 Replies