Skip to content
This repository was archived by the owner on Jan 26, 2022. It is now read-only.
Peter Tillema edited this page Nov 26, 2018 · 2 revisions

Repeat loops run the code in their block once, then evaluate the condition code, and if the condition code returns false (0), the code in their block will be run again. Each time the statement repeats, the condition code will be checked. The loop will continue indefinitely until the condition evaluates to true. Example:

0→A
Repeat A>1000
    A+1→A
End
ClrHome
Disp A

The example stores 0 into A, and then continually adds 1 to A until A is more than 1000. Of course, this is an incredibly inefficient way of doing 1001→A, but it's for example purposes.

Clone this wiki locally