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

If Statement - nesting and multiple conditions

AndrewAlb
Registered: Aug 16 2007
Posts: 97

Can you please explain in some detail the 'if' statement. I am particularly interested in two things. 1) nesting several 'if' statements and 2) writing an 'if' statement with multiple conditions - i.e. 'if x AND y are true then....'
 
Thank you very much for your help!

Andrew D. Albrecht, MS
Solutions Developer
ING USFS

My Product Information:
Acrobat Pro 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
This is a basic programming question. There are several things you can do to answer it. Something we can't do here is give you a short course in programming.

1. Get the O'Reilly "JavaScript, Definitive guide" and read the first section.
2. Take an introductory class in JavaScript. There are online instructional videos for this sort of thing. Lynda.com has a nice one.
3. Read this artical on using the Acrobat JavaScript Console Window and experiment with "if" blocks.

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

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Sorry, Here's the article

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/javascript_console/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/javascript_console/[/url]

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