This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
crpl:docs:while [2013/01/18 06:25] – grauniad | crpl:docs:while [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ~~DISCUSSION~~ | + | |
<- [[crpl: | <- [[crpl: | ||
===== while ===== | ===== while ===== | ||
Line 13: | Line 13: | ||
=== Examples === | === Examples === | ||
< | < | ||
- | # outputs a set of sescending | + | # outputs a set of descending |
ShowTraceLog | ShowTraceLog | ||
ClearTraceLog | ClearTraceLog | ||
- | 5 ->y #create temp varialble | + | 5 ->y #create temp variable |
while <-y 0 gt # is y greater than zero? | while <-y 0 gt # is y greater than zero? | ||
repeat #repeat this section of code | repeat #repeat this section of code |