mIRC Home    About    Download    Register    News    Help

Print Thread
#19177 14/04/03 12:13 PM
Joined: Mar 2003
Posts: 9
T
T_S Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Mar 2003
Posts: 9
Can someone explain the difference between $1, $1-, $2 and #3. Id really appriciate it. Thx

T_S

#19178 14/04/03 12:40 PM
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774

add to aliases section(alt+a) of mIRC editor:
Code:
test {
echo what's that? - $1
echo that's like $2 ?
echo $3 there any1 out there?
echo indeed, $1-
echo but $2-4 out there
}
  

type command "/test something weird is happening"

$1 is the first token of supplied arguments to command
$2 is the same as $1, but suprisingly it returns 2nd word of supplied arguments
$3 -''- $2, -''- 3rd -''-
$1- is the whole arguments supplied to command




Code:
//if ( khaled isgod ) echo yes | else echo no

Link Copied to Clipboard