mIRC Home    About    Download    Register    News    Help

Print Thread
#19177 14/04/03 12:13 PM
T
T_S
T_S
T
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
T
theRat
theRat
T

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




Link Copied to Clipboard