Hi
Thanks for your reply. So am i right in saying that the below would work

//var %i = $cnick(0) | while (%i) { cnick -r $cnick(%i) | dec %i }

Do you have any better suggestions?