{"identifier":50819,"topic":"Commands","name":"wait","text":"<code>wait <\/code>[<code>for<\/code>]<code> <i>posInteger<\/i> <\/code>[<code>ticks<\/code>]<code> wait <\/code>[<code>for<\/code>]<code> <i>posInteger<\/i> seconds wait until <i>trueOrFalse<\/i> wait while <i>trueOrFalse<\/i> <\/code> The<code> wait <\/code>command causes HyperCard to pause before executing the rest of a handler, either for a specific length of time, until a specified condition becomes true, or while a specified condition remains true. <br>\n<br>\nIf you do not specify<code> seconds <\/code>as the unit of time, HyperCard uses ticks. (One tick equals one-sixtieth of a second.) <br>\n","related":{"63225":"seconds","64990":"sound","66203":"ticks","66404":"time"},"examples":"wait 7\nwait for 7\nwait 7 ticks\nwait for 7 ticks\n\nwait for 1 second\nwait 3 seconds\n\nwait until the mouse is up\nwait until the mouseLoc is within the rect of button 1\nwait until the sound is done\nwait while the commandKey is down\nwait while the mouseLoc is within the rect of button 1\nwait until the mouseClick","demo":"on waitUntilTheMouse\n   set the cursor to arrow\n   show bkgnd field \"demo field\"\n   displayMessage \"Click the mouse to continue . . .\"\n   <b>wait<\/b> until the mouseClick\n   hide bkgnd field \"demo field\"\n end waitUntilTheMouse\n ","debug":{"9":["wait [for] posIntege"],"10":["If you do not specif"]}}