Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Viewing all articles
Browse latest Browse all 12130

Addition script giving wrong numbers

$
0
0

I have a script that hide a value if the value of another field is blank. I have two other fields performing the same function (with different respective fields) and the only difference between them and this one is that this one adds one more field. I will list a couple different outputs to show its behavior and a link to the script I used, though I see nothing wrong with the script itself. Also, the field order is where it should be. It does some really funky things with my totals that the other scripts don't experience. Pastebin

 

Base: 5
Agility: -30
Special: (blank)

Class: 5

Final: -255

 

Base: 5
Agility: -30
Special: 5

Class: 5

Final: -15

 

Base: 5
Agility: -30
Special: (blank)

Class: (blank)

Final: -25

 

Base: 5
Agility: 0
Special: (blank)

Class: 5

Final: 55

 

Base: 156
Agility: 0
Special: (blank)

Class: 5

Final: 1,565


Viewing all articles
Browse latest Browse all 12130

Trending Articles



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