Conditional Statement in 'repeat loop'

In reply to Shashank Gurijala:

See the break statement.