Translations:Extension:Scribunto/Lua reference manual/1443/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.