1. create a page / publication variable.
Easiest way is to create text-box and right click in the box and use insert variable > new button. Give it a name and select type number.
Then your for loop looks like this:
Code:
for (i=0;i<100;i++)
{
wait(1)
}
Note the absence of the standard
var keyword as you're using the variable on-screen it can't be locally scoped.
I also suggest, using a different naming notation for local and global (page / publication) variables to make them easier to identify. Such as myLoop.
Mack