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

sample script please?

nahpishtim
Registered: Oct 12 2009
Posts: 30

Is it possible for someone to give me a sample of a script with if, also and true/false functions together?

I'm having a bit of difficulty combining the individual examples I have found.

I'm trying to get a formula that checks the results of several forms before doing anything. if it finds true for any of the results goes onto the formula if all is false goes to the else command.

My Product Information:
Acrobat Pro 8.1.3, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This forum and the tutorials are full of examples of using the "if" statment.

If you are interested in learning some programming techniques I'd suggest getting a book on JavaScript and searching for information on basic JavaScript Programming. I think that once you understand how the "if" statement is used you'll find you calculation script is not a problem.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

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