Translations:Extension:Scribunto/Lua reference manual/168/en

The repeat statement repeats a block until an expression evaluates to a true value. Local variables declared inside the block may be accessed in the expression.