These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

If/Then Calculation

jeaneen2
Registered: Jul 6 2011
Posts: 1

Hello,
 
I'm working on a Pdf fillable form. I have two boxes that require the differences.
 
If "box F" is greater than "box A". Then subtract "box F" from "box A".
My excel formula is:
=IF($F$29>$A$22, $F$29-$A$22,0)
 
Does anyone know the formula for this in javascript?
Thanks

My Product Information:
Acrobat Pro 10.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Please see this article:
http://acrobatusers.com/tutorials/conditional-execution

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script