next up previous contents index
Next: while Up: Control Structures Previous: ternary conditional   Contents   Index

repeat

repeat expression
statements
end

Execute statements n times, where n is the integer result of evaluating expression. The expression is evaluated once only when the block is entered, and the integer value computed is used as the loop counter. The value is tested for zero, which will terminate the loop, and is decremented after each pass. A negative value will produce an error and the script will terminate.



Stephen R. Whiteley 2024-09-29