| 
              
                
                  | 
                      
                        
                          |  | THE HYPERCARD CENTER |  
 |  
                    |  |  Note: This is a work in progress and many formatting issues have been fixed. Read more about the project on the home page. repeat whilerepeat while trueOrFalse    statements end repeat
 The statements in a repeat whilestructure repeat as long as the condition following the wordwhileis true. HyperCard checks the condition before the first and any subsequent iterations of the loop. If HyperCard executes an exit repeatstatement in the loop, it continues running the handler starting from the first statement afterend repeat. If HyperCard executes a next repeatstatement, it returns immediately to the beginning of therepeatloop. Demo Scripton mouseUp   show bkgnd field "demo field"   put return & "    Press the mouse to stop counting..." ¬   into bkgnd field "demo field"   put 0 into theCount   put space & space & theCount after bkgnd field "demo field"   repeat while the mouse is up     add 1 to theCount     put theCount into last word of bkgnd field "demo field"   end repeat   wait 20   hide bkgnd field "demo field"   put empty into bkgnd field "demo field" end mouseUp
 Related Topics
                HyperTalk Reference
               
 |