<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>


NEXT Search:

In Flow Control Words in TurboForth Kernal

Word Name: NEXT
Type: Immediate compiling word
Data Stack Signature: --
Return Stack Signature: --
Availability: V1.0  V1.1  
Description:

Causes a FOR/NEXT loop to repeat from the word following FOR.

Example:

: TEST ( -- ) 100 FOR I . NEXT ." Finished!" CR ;

Comment:

When the loop index, accessible via I is equal to 0 the loop terminates and execution continues with the word immediatley following NEXT.

See Also: FOR 

<< Home | About Forth | About TurboForth | Download | Language Reference | Resources | Tutorials | YouTube >>