This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
crpl:docs:k [2013/01/14 19:05] – created virgilw | crpl:docs:k [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | TODO | + | |
+ | <- [[crpl: | ||
+ | ===== K ===== | ||
+ | |||
+ | ^Arguments^Result^Notation^ | ||
+ | | |Second outer loop Index ||| FIXME ||| | ||
+ | |||
+ | |||
+ | === Description === | ||
+ | Outer loop index. When loops are nested, this pushes the value of the outermost loop onto the stack. | ||
+ | === Examples === | ||
+ | < | ||
+ | # Show the trace log, clear it, then show the result of multiplying 3 loop | ||
+ | # indexes | ||
+ | ShowTraceLog | ||
+ | ClearTraceLog | ||
+ | 2 1 do | ||
+ | 4 3 do | ||
+ | 6 5 do | ||
+ | I J K mult mult trace | ||
+ | loop | ||
+ | loop | ||
+ | loop | ||
+ | </ |