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