For ones like this
if ( $numeric == 318 ) { halt } if ( $numeric == 312 ) { halt }
you can use ( extra numbers can be added just remember to leave a space between each one )
if ($istok(312 318,$numeric,32)) { halt }