RusselB is right - I should have tested it with more than 1 item
$hget(table,foobar).item = $hget(table,0).item
Use the "data" part (added by? date added?), or add at least a "dummy" data value and refer to if $hget(badword,%badword) like in your initial script ... or (if you don't assing a data value), use if $hfind(badword,%badword)