Could someone give me the proper syntax in either FormCalc or JavaScript for the following calculation to be entered in a "Text3" form field:
If Text1 minus Text2 is less than or equal to "0", display "0" in Text3.
If Text1 minus Text2 is greater than "0", display the result of (Text1 -Text2) in Text3.
I've tried and tried, but I can't get any variation to work.
if (Text1 - Text2 < 0) then 0
else Text1 - Text2
endif
George Kaiser