use:
raw *:*: { if ($istok(318 324 ...,$numeric,32)) { haltdef } }
I just mad ur code ~30 lines shorter. Lots of stuff u can improve bud.