Solved by going back to the help files yet again and modifying one of the example scripts (instead of using a while loop that I couldn't make work)
Code:
alias AOP_remove_channel {
  set %ra 1
  :next
  set %nick $nick(#,%ra)
  if %nick == $null goto done
  if %nick isop # .aop -r %nick # 7
  inc %ra
  goto next
  :done
}


Thanks again everyone (I'll get this yet laugh )


I refuse to engage in a battle of wits with an unarmed person. wink