Index
Flow Control

I

I

Description

Current loop index. Pushes the value of the current “do” loop onto the stack. Only use within loops.

Note that I refers to the innermost loop. As loops are nested, I will continue to reference the innermost of the nested loops.

Examples

do(2 0)
    trace(I)
    Do (4 2)
        Trace2 (J I)
        Do (6 4)
            Trace3 (K J I )
        loop
    loop
loop

Index