Subversion Repositories wimsdev

Rev

Rev 5920 | 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
!if $numlist_type=record
2
  !set numlist_str=$emph fname$emphend
3
!else
4
  !set numlist_str=$emph string$emphend
5
!endif
6
 
7
$emph numlist$emphend can be a single integer, a comma-separated list of
8
integers, or a range of integers.
5766 bpr 9
<br/>
32 reyssat 10
A positive integer denotes the number of $numlist_type in $numlist_str
11
counted from the beginning,
12
with $emph 1 $emphend corresponding to the first 
13
$numlist_type. A negative integer denotes the number of $numlist_type from 
14
the end of $numlist_str: $emph-1$emphend
15
means the last $numlist_type, $emph-2$emphend means
16
the next-to-last $numlist_type, etc. <p>
17
The syntax for a range of integers is
5921 bpr 18
<span class="tt">$emph n1$emphend to$emph n2$emphend</span>
19
For example, <span class="tt">$emph 2 to -2$emphend</span>
32 reyssat 20
means the whole $numlist_str except the first
5920 bpr 21
and the last $(numlist_type)s. 
22
</p>