Basic programming script question
Hi,
I'm not a programmer and I have a basic question about two options, which is the best option?:
- Doing a task in every page
for (loop pages) {
doTask ();
}
function doTask () {
//do something
}- Or, in every page doing the task
doTask();
function doTask () {
for (loop pages) {
//do something
}
}
there is no difference, it depends the task...
Thanks
P.D.:
It's a hugh ammount of pages, the task... add two text frames
