Get the course above, and a suite of automation tools for FREE with a Professional subscription.
JavaScript Loops
JavaScript loops are very handy for repeating scripts, counting things, and automating processes. They can be executed easily from the JavaScript console in Acrobat Pro. The variable in a loop is incremented (or decremented) to determine how many iterations should be performed. Here’s a simple loop that can be run from the console to return the numbers 1 through 10:
for(var i=1;i<11;i++)
{
console.println(i);
}