<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>
In Flow Control Words in TurboForth Kernal
Returns the outer index when used in a nested DO or FOR loop.
DO
FOR
: TEST ( -- ) 10 0 DO ." Outer loop " I . CR 5 0 DO ." inner loop " J . LOOP CR LOOP ;
In this example the inner loop accesses the index of the outer loop via the word J.
J
none