| Home Introduction Using Holon Holon Tools Contact
HolonJForth |
Flow
control
HolonJ offers the usual Forth flow control structures. Counted loopsdo
This is equivalent to for( int i = n; i<m; i++) in Java. The word i is the index of the loop. J
The word j is the index of the outer loop. times
Same as m 0 do .. loop. I use times in loops, where the index is not needed. leave
Execution continues behind loop. return
Exits the word, control is returned to the calling word. Uncounted loopsagain
Repeats the loop indefinitely.
Typical use. Returns control to the calling word. while
Repeats the loop as long as the flag is true. until
Repeats the loop as long as the flag is false. Conditions
Continues execution after if, if the flag is true. Otherwise jumps to else.
|
|
| © 1999-2005 Wolf Wejgaard |