User Tools

Site Tools


4rpl:commands:j

Index
Flow Control

J

J

Description

First outer loop index. When loops are nested, this pushes the value of the first (or only) outer “do” loop onto the stack. Do not use outside nested loops.

Note: after the inner loop finishes, this value is accessed with I, it being now the innermost loop.

Examples

do(6 5)
    do(4 3)
        trace4 ("Inner loop J=" J ", I=" I)
    loop
     trace2 (" I =" I) #note: The value og I here will be the value of J when the loop above has terminated.
loop

Index

4rpl/commands/j.txt · Last modified: 2021/12/23 14:27 by Karsten75