Project

General

Profile

$1- » History » Version 1

Per Amundsen, 08/14/2015 02:23 PM

1 1 Per Amundsen
_Added in 1.9.0_
2
3
*$1-$N*
4
5
Returns a range of tokens associated with current script.
6
7
You can use $N- to refer to parameters N and onward, and $N-M to refer to token $N through to $M. 
8
To refer to a whole line, you would use $1-.
9
10
_See also [[/tokenize]]._
11
12
*Example*
13
14
<pre>
15
on *:TEXT:*:*:Number of tokens in the incoming message is $0 first token is $1 all tokens is $1-
16
17
alias Example {
18
  ; Tokenize the string 'a,b,c,d.
19
  /tokenize 44 a,b,c,d
20
21
  ; Print number of tokens.
22
  echo -ag Number of tokens is $0 first token is $1 all tokens is $1-
23
}
24
</pre>