Subversion Repositories wimsdev

Rev

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

!if $numlist_type=record
  !set numlist_str=`fname'
!else
  !set numlist_str=`string'
!endif
!if $numlist_type=char
  !set numlist_type=character
!endif
`numlist' 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 `1' corresponding to the first
$numlist_type. A negative integer denotes the number of $numlist_type from
the end of $numlist_str: `-1'
means the last $numlist_type, `-2' means
the next-to-last $numlist_type, etc. <p>
The syntax for a range of integers is
<span class="tt">`n1' to`n2'</span>
For example, <span class="tt">`2 to -2'</span>
means the whole $numlist_str except the first
and the last $(numlist_type)s.
</p>