{"identifier":27895,"topic":"Keywords","name":"repeat for","text":"<code>repeat <\/code>[<code>for<\/code>] <i><code>posInteger<\/i> <\/code>[<code>times<\/code>] <code><pre>   <i>statements<\/i>\nend repeat\n<\/pre><\/code> The statements in a<code> repeat for <\/code>structure repeat for a specified number of times. <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","27427":"repeat","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 & \"    The count will stop at 10:\" \u00ac\n   into bkgnd field \"demo field\"\n   put 0 into theCount\n   put space & space & theCount after bkgnd field \"demo field\"\n   <b>repeat for<\/b> 10 times\n     add 1 to theCount\n     put theCount into last word of bkgnd field \"demo field\"\n   <b>end repeat<\/b>\n   wait 30\n   hide bkgnd field \"demo field\"\n   put empty into bkgnd field \"demo field\"\n end mouseUp\n ","debug":{"9":["repeat [for] posInte"],"10":["If HyperCard execute"]}}