We allow pauses via ogscript.pause(TIME_IN_MILLISECONDS) but you need to run the loop in a function and send it through asyncExec (we disable pauses that would block the user interface).
If you want it always running every second, you could also use a timer and just have a variable to keep track of which index you want to show).
One other note with your code - have you considered using an array instead of individual parameters for each letter - might be a better fit depending on your use.
function myFunction()
{
for (i = 1; i < 53; i++)
{
var letterval = params.getValue('Letter_' + i, 0);
if (letterval == 'R')
{
params.setValue('Letter_Status', 0, i);
ogscript.pause(1000);
}
}
}
ogscript.asyncExec(myFunction);
#DashBoard