helpers: comparison: add `ifNth` helper

Basically a modulo, useful inside #each with @index.