Subversion Repositories wimsdev

Rev

Rev 4562 | Rev 5921 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4562 Rev 5766
Line 2... Line 2...
2
$lst_tit for$lst_titend$type_exec
2
$lst_tit for$lst_titend$type_exec
3
  $(lst_syntax)for $emph var $emphend = $emph start $emphend to $emph end
3
  $(lst_syntax)for $emph var $emphend = $emph start $emphend to $emph end
4
  $emphend [step $emph st $emphend ]</tt> <br>or<tt>
4
  $emphend [step $emph st $emphend ]</tt> <br/>or<tt>
5
 $ !for $emph var $emphend from $emph start $emphend to $emph end $emphend
5
 $ !for $emph var $emphend from $emph start $emphend to $emph end $emphend
6
  [step $emph st $emphend ]</tt> <br>or<tt>
6
  [step $emph st $emphend ]</tt> <br/>or<tt>
7
 $ !for $emph var $emphend in $emph list$emphend<br></tt>
7
 $ !for $emph var $emphend in $emph list$emphend<br/></tt>
8
  ... (multi-line content)<br>
8
  ... (multi-line content)<br/>
9
  <tt>!next</tt>
9
  <tt>!next</tt>
10
  $lst_mean For loop. In the first two forms, $emph var $emphend goes from
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
11
  $emph start$emphend to $emph end$emphend, with optional step $emph
12
  st$emphend. <br>
12
  st$emphend. <br/>
13
  In the last form, $emph var$emphend takes successively items in the list
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
14
  $emph list$emphend. $emph list$emphend is a list of items separated by
15
  commas. <br>
15
  commas. <br/>
16
  The command
16
  The command
17
  <pre>!break</pre>
17
  <pre>!break</pre>
18
  within the for loop breaks it. $emph continue $emphend is not yet
18
  within the for loop breaks it. $emph continue $emphend is not yet
19
  implemented in this version. <br>
19
  implemented in this version. <br/>
20
  It is recommended that the variable name $emph var$emphend be added to the
20
  It is recommended that the variable name $emph var$emphend be added to the
21
  <tt>!next </tt> line. This has no effect for the time being, but may be
21
  <tt>!next </tt> line. This has no effect for the time being, but may be
22
  used in future versions of wims.
22
  used in future versions of wims.
23
 
23