Subversion Repositories wimsdev

Rev

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

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