loopy-example
getEval storedVars['nids'] = new Array("123", "456", "789");
getEval storedVars['y'] = storedVars['nids'].length;
store -1 x
label top
getEval storedVars['x'] = ${x} + 1 ;
getEval storedVars['thisval'] = storedVars['nids'][storedVars['x']];
echo Running iteration ${x} of ${y}. Nid: ${thisval}
gotoIf ${x} < ${y}-1 top