Rev 11292 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
32 | reyssat | 1 | !! +exec+ +loop+ +jump+ |
11210 | bpr | 2 | tit:for |
3 | type:$type_exec |
||
11292 | bpr | 4 | syntax:!for ``var'' = ``start'' to ``end'' [step ``st'' ]\ |
5 | $ !for ``var'' from ``start'' to ``end'' [step ``st'' ]\ |
||
17228 | bpr | 6 | $ !for ``var'' in ``list''<br>\ |
7 | ... (multi-line content)<br>\ |
||
11212 | bpr | 8 | !next |
11292 | bpr | 9 | mean:For loop. In the first two forms, ``var'' goes from ``start'' to ``end'', with optional step ``st''.\ |
17228 | bpr | 10 | <br>In the last form, ``var'' takes successively items in the list\ |
11 | ``list''. ``list'' is a list of items separated by commas. <br>\ |
||
11210 | bpr | 12 | The command <pre>!break</pre>\ |
17228 | bpr | 13 | within the for loop breaks it. ``continue'' is not yet implemented in this version. <br>\ |
11292 | bpr | 14 | It is recommended that the variable name ``var'' be added to the\ |
11210 | bpr | 15 | <span class="tt">!next </span> line. This has no effect for the time being, but may be\ |
32 | reyssat | 16 | used in future versions of wims. |