Answered
I'm setting up a form for an RPG character sheet, but the basic problem is this, I have these stats, and I need to have a formula that will do the stat-10 then divide it by 2, and round it all down.
This is what I came up with:
var a = this.getField("STR");
event.value = Math.floor(("a"-10)/2)
But when I go to preview all I get is NaN.
Help please?
var a = this.getField("STR").value;
if (a!="") {event.value = Math.floor((a-10)/2)} else event.value = "";
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com