Text field subtraction
I have 3 text fields in a pdf and I named them each Adjustments_1 , Adjustments_2 and Adjustments_3. I want Adjustments_3 to equal Adjustments_1 - Adjustments_2 and if that difference is less than 0, I want Adjustments_3 to equal "0" and have that difference displayed on the text fields. I tried doing an if else statement under the custom calculation script in the Adjustments_3 properties which looks like this:
if (Adjustments_2 < Adjustments_1) {
Adjustments_3=Adjustments_1-Adjustments_2;
}
else {
Adjustments_3 = "0";
}
My difference is always 0.00 for any value I try, so I'm just wondering where I went wrong.
