Subtraction issues!
Hello,
I'm attempting to make a PDF that calculates fields for me by using the data from other fields. I have the calculation all set up to subtract, however I would like the field to show "0" if the number is negative instead of the negative number. I'm not sure of the script to use for that. Here is the script I have so far:
var total = this.getField("BenefitMonthlyTotal").value - this.getField("EmployerContribution").value;
this.getField("TotalMonthlyCost").value=total
What could I add to this script so that all negative numbers show as a "0" and all positive numbers show as actual number?
Thank you for your help!
