||THE HYPERCARD CENTER
Note: This is a work in progress and will be formatting errors. Read more about the project on the home page.
statements in a
repeat forever structure repeat continuously.
If HyperCard executes an
exit repeat statement in the
loop, it continues running the handler starting from the first statement after
If HyperCard executes a
next repeat statement, it returns immediately to the beginning of the
show bkgnd field "demo field"
put return & " Click the mouse to stop counting..." ¬
into bkgnd field "demo field"
put 1 into theCount
put space & space & theCount after bkgnd field "demo field"
set the cursor to busy
add 1 to theCount
get last char of theCount
if it = 0 OR it = 5 then next repeat -- skip fives and tens
put theCount into last word of bkgnd field "demo field"
if the mouse is DOWN OR theCount = 10000 then exit repeat
hide bkgnd field "demo field"
put empty into bkgnd field "demo field"
Any return-separated list of built-in commands, user-defined handlers, or keywords that are part of a message or function handler.
put "Hello world" -- built-in command
get total(field 1) -- function call
global HelpInfo -- keyword
« pass | HyperTalk Reference
| repeat for »
(March 24, 2022)
Switch to Modern View