Heh, the loop thing was a lil messy, however:
alias mode_load { var %a = 30, %b = 38 while %a <= %b { did $iif($did(%a) isin $chan($active).mode,-c,-u) $dname %a inc %a } }
Sorry, did it in class you know ;)