Loops don't function properly when using the variable 'c' as the loop counter
Javascript loops don't function properly when using the variable 'c' as the loop counter, e.g.
for(var c=0;c<10;c++) {
//this code would run more than 10 times
}
-
Hello Joel,
Thanks for Reaching out to us for this. I Tried to execute the same scenario as you mentioned in the acrobat Javascript Debugger and this is working fine for me.
for an instance, This code :for(var c=0;c<10;c++) {
console.println(c);
}
prints value of c i.e. 0 to 9.1) Can you please confirm me the version no. of Acrobat that you are using . you can get the details of version from Help -> "About Adobe Acrobat"... Also please mention the OS you are working , Win or Mac ?
2) Can you please try the above mentioned code and let me know your observations ? Also, specify your exact scenario That you are doing with your workflow.
This will help us to dig down the issue further.
Thanks,
Ayush