After working with the user chaley in MobileRead forums a while back, this is what they helped come up with and it works perfectly for my needs. Sorry for the delay in posting this, I just realized I should include this here for posterity. I just realized that the code block mixes up the formatting, don’t hesitate with any questions.
program: val = $#pagecount; if $formats && $formats != 'PDF' && list_intersection($tags, 'Graphic Novel, Cookbook', ',') == '' then switch_if( val ==# 0, '', val <# 15, 'Flash Fiction', val <# 50, 'Short Story', val <# 100, 'Novelette', val <# 250, 'Novella', val <# 500, 'Short Novel', val <# 750, 'Long Novel', val <# 1000, 'Tome', 'Toe Breaker') fi