in reply to Switching back and forth between parts of my script
while (1) { if (@array1) { #.... } if (@array2) { #.... } } [download]