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