Use repeat to execute a sequence of instructions over and over. Use break and breakif statements to break out of the loop.
(repeat code_block_1 code_block_2 ... )
The code blocks are continually executed until a break or return statement is encountered, or a breakif statement is satisfied:
(repeat (= nextControl (dialog next:)) (breakif (not nextControl)) )