mIRC Home    About    Download    Register    News    Help

Print Thread
Message parameters #95653 26/08/04 05:17 AM
Joined: Jan 2004
Posts: 16
S
SuperMappy Offline OP
Pikka bird
OP Offline
Pikka bird
S
Joined: Jan 2004
Posts: 16
we all know the $1 refers to the first parameter of a line along with $2 for the second, but how could I recognise the last word in a line. I suspect it would have something to do with the $len or $right commands.

Re: Message parameters #95654 26/08/04 06:32 AM
Joined: Aug 2003
Posts: 314
S
Sigh Offline
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
It's more to do with token identifiers you can use $gettok($1-,-1,32) or, knowing that $0 returns the total number of tokens in $1-, attach $ to the front of the value $0 returns and evaluate: $($ $+ $0,2)