for each dep you can make a var:
$dep_name={c-class}

and then against primary group (it has to be the same name as the var):
code:
$nul=execute("if $$"+$primarygroup+"=$current_class gosub 'inventory' endif")

then, if there is more allowable c-classes for some deps, you can do it as:
code:
$nul=execute("if instr($$"+$primarygroup+",$current_class) gosub 'inventory' endif")

easy? [Wink]
_________________________
!

download KiXnet