Subversion Repositories wimsdev

Rev

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

Rev 11292 Rev 11428
Line 1... Line -...
1
!if $numlist_type=record
-
 
2
  !set numlist_str=``fname''
-
 
3
!else
-
 
4
  !set numlist_str=``string''
-
 
5
!endif
-
 
6
!if $numlist_type=char
-
 
7
  !set numlist_type=character
-
 
8
!endif
-
 
9
 
-
 
10
``numlist'' can be a single integer, a comma-separated list of
1
``numlist'' can be a single integer, a comma-separated list of
11
integers, or a range of integers.
2
integers, or a range of integers.
12
<br/>
3
<br/>
13
A positive integer denotes the number of $numlist_type in $numlist_str
4
A positive integer denotes the number of $numlist_type in $numlist_str
14
counted from the beginning,
5
counted from the beginning,
Line 16... Line 7...
16
$numlist_type. A negative integer denotes the number of $numlist_type from
7
$numlist_type. A negative integer denotes the number of $numlist_type from
17
the end of $numlist_str: ``-1''
8
the end of $numlist_str: ``-1''
18
means the last $numlist_type, ``-2'' means
9
means the last $numlist_type, ``-2'' means
19
the next-to-last $numlist_type, etc. <p>
10
the next-to-last $numlist_type, etc. <p>
20
The syntax for a range of integers is
11
The syntax for a range of integers is
21
``n1 to n2''
12
``n1'' to ``n2''.
22
For example, ``2 to -2''
13
For example, ``2'' to ``-2''
23
means the whole $numlist_str except the first
14
means the whole $numlist_str except the first
24
and the last $(numlist_type)s.
15
and the last $(numlist_type)s.
25
</p>
16
</p>