Fix repeat condition

condition was backwards
Merge pull request #32 from ostlerc/repeatfix

Fix repeat statement