mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Mar 2003
Posts: 48
F
flup Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Mar 2003
Posts: 48
Hi all,

I have some variables wich are like this:

%sl [ $+ [ %slid ] ] word1 word2

slid is just a single letter, but now I want to grab the 1st word
from the variable, how to I do this? I tried gettok, eval etc but
they don't seem to work.

tia

Joined: Mar 2003
Posts: 48
F
flup Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Mar 2003
Posts: 48
$gettok(%var,Nth)

nvm works now

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
If you fix your problem you should show the correct solution!

set %sl [ $+ [ %slid ] ] word1 word2
echo -a First word is $gettok(%sl [ $+ [ %slid ] ],1,32)

Joined: Mar 2003
Posts: 48
F
flup Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Mar 2003
Posts: 48
yeah but got that already :-))

Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
as i said you answered incorrectly, others might read this for help, and believe that was the answer.

//echo -a $gettok(%var,Nth)
* Too few parameters: $gettok


Link Copied to Clipboard