Subversion Repositories wimsdev

Rev

Rev 5766 | Rev 5921 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

!if $numlist_type=record
  !set numlist_str=$emph fname$emphend
!else
  !set numlist_str=$emph string$emphend
!endif

$emph numlist$emphend can be a single integer, a comma-separated list of
integers, or a range of integers.
<br/>
A positive integer denotes the number of $numlist_type in $numlist_str
counted from the beginning,
with $emph 1 $emphend corresponding to the first 
$numlist_type. A negative integer denotes the number of $numlist_type from 
the end of $numlist_str: $emph-1$emphend
means the last $numlist_type, $emph-2$emphend means
the next-to-last $numlist_type, etc. <p>
The syntax for a range of integers is
<tt>$emph n1$emphend to$emph n2$emphend</tt>
For example, <tt>$emph 2 to -2$emphend</tt>
means the whole $numlist_str except the first
and the last $(numlist_type)s. 
</p>