home *** CD-ROM | disk | FTP | other *** search
- Loops
- -----------------------------------------------------------------
-
- Dust can perform nested FOR-loops, the loop-counter is equal to
- the loop-variable of the innerst loop.
- The loop-counter is the number inserted into a string containg
- format-commands.
-
- Syntax:
-
- FOR(<loop-variable>,<from>,<to>[,<step>])
- .
- .
- .
- END
-
- Example:
-
- for(i,1,10)
- echo("unformatted:$, formatted:%")
- end
-
- Contains a string format-commands so this commands will be replaced by
- the recent value of the loop-counter.
-
- $ - inserts the value unformatted
- % - inserts the value formatted
-
- Example:
- A string "$. Objekt: obj.%" is changed into "23. Objekt: obj.0023" if
- the loop-counter was 23.
-