{"identifier":27427,"topic":"Keywords","name":"repeat","text":"<code>repeat <\/code>[<code>forever<\/code>] <code><pre>   <i>statements<\/i>\nend repeat\n<\/pre><\/code> The<code> <\/code>statements in a <code>repeat forever <\/code>structure repeat continuously. <br><br>\n\n If HyperCard executes an<code> exit repeat <\/code>statement in the<code> <\/code>loop, it continues running the handler starting from the first statement after<code> end repeat<\/code>. <br>\n<br>\nIf HyperCard executes a <code> next repeat <\/code>statement, it returns immediately to the beginning of the<code> repeat <\/code>loop. <br>\n","related":{"89783":"Comparison operators","25835":"exit","90049":"Logical operators","27895":"repeat for","28073":"repeat until","28298":"repeat while","28477":"repeat with","6157":"Type and existence operators"},"examples":"","demo":"on mouseUp\n   show bkgnd field \"demo field\"\n   put return & \"    Click the mouse to stop counting...\" \u00ac\n   into bkgnd field \"demo field\"\n   put 1 into theCount\n   put space & space & theCount after bkgnd field \"demo field\"\n   <b>repeat<\/b> <b>forever\n <\/b>    set the cursor to busy\n     add 1 to theCount\n     get last char of theCount\n     if it = 0 OR it = 5 then <b>next repeat<\/b> -- skip fives and tens\n     put theCount into last word of bkgnd field \"demo field\"\n     if the mouse is DOWN OR theCount = 10000 then <b>exit repeat<\/b>\n  <b> end repeat<\/b>\n   hide bkgnd field \"demo field\"\n   put empty into bkgnd field \"demo field\"\n end mouseUp\n ","debug":{"9":["repeat [forever]\r   "],"10":["If HyperCard execute"]}}