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


+LOOP Search:

In Flow Control Words in TurboForth Kernal

Word Name: +LOOP
Type: Immediate compiling word
Data Stack Signature: n --
Return Stack Signature: --
Availability: V1.0  V1.1  V1.2
Description:

Adds n to the current loop index. If the index equals or exceeds the loop limit, the loop exits, otherwise the loop executes again.

Example:

: TEST 100 0 DO I . 2 +LOOP;

TEST

(0 2 4 6 8 10 12 14 16 etc)

Comment:

none

See Also: DO  LEAVE  LOOP 

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